enable modules
This commit is contained in:
parent
923d9d9e0a
commit
8a7c6977bb
2 changed files with 16 additions and 16 deletions
|
|
@ -69,7 +69,7 @@
|
||||||
harmonica = nixpkgs.lib.nixosSystem {
|
harmonica = nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
||||||
agenix.nixosModules.default
|
|
||||||
./hosts/harmonica/configuration.nix
|
./hosts/harmonica/configuration.nix
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,28 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./sd-image.nix
|
./sd-image.nix
|
||||||
|
../../modules
|
||||||
|
inputs.agenix.nixosModules.default
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
|
myModules = {
|
||||||
|
enableKDE = false;
|
||||||
|
enableFonts = false;
|
||||||
|
blockYoutube = false;
|
||||||
|
blockTwitter = false;
|
||||||
|
enableTailscale = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
||||||
|
|
||||||
|
|
||||||
# Some packages (ahci fail... this bypasses that) https://discourse.nixos.org/t/does-pkgs-linuxpackages-rpi3-build-all-required-kernel-modules/42509
|
# Some packages (ahci fail... this bypasses that) https://discourse.nixos.org/t/does-pkgs-linuxpackages-rpi3-build-all-required-kernel-modules/42509
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: super: {
|
(final: super: {
|
||||||
|
|
@ -19,7 +33,6 @@
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
# ! Need a trusted user for deploy-rs.
|
# ! Need a trusted user for deploy-rs.
|
||||||
nix.settings.trusted-users = ["@wheel"];
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
|
|
@ -149,26 +162,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable OpenSSH out of the box.
|
|
||||||
services.sshd.enable = true;
|
|
||||||
|
|
||||||
# NTP time sync.
|
# NTP time sync.
|
||||||
services.timesyncd.enable = true;
|
services.timesyncd.enable = true;
|
||||||
|
|
||||||
# ! Change the following configuration
|
|
||||||
users.users.osbm = {
|
|
||||||
isNormalUser = true;
|
|
||||||
home = "/home/osbm";
|
|
||||||
description = "osbm";
|
|
||||||
extraGroups = ["wheel" "networkmanager"];
|
|
||||||
# ! Be sure to put your own public key here
|
|
||||||
openssh.authorizedKeys.keys = ["a public key"];
|
|
||||||
};
|
|
||||||
|
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wheelNeedsPassword = false;
|
wheelNeedsPassword = false;
|
||||||
};
|
};
|
||||||
# ! Be sure to change the autologinUser.
|
|
||||||
services.getty.autologinUser = "osbm";
|
services.getty.autologinUser = "osbm";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue