Adjust how the config is split across files

This commit is contained in:
Vili Sinervä 2025-06-03 00:03:04 +03:00
parent 3146539366
commit 7b943a438d
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 5 additions and 8 deletions

View file

@ -27,8 +27,9 @@
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
{ networking.hostName = host; }
./hosts/${host}/configuration.nix ./hosts/${host}/configuration.nix
./hosts/${host}/hardware-configuration.nix ./hosts/${host}/state.nix
]; ];
} }
) )

View file

@ -1,11 +1,5 @@
{ lib, ... }: { lib, ... }:
{ {
# MANUAL STATE
system.stateVersion = "24.05";
boot.kernelParams = [ "resume_offset=39292928" ];
# MANUAL STATE
networking.hostName = "lithium";
custom.home_wg_suffix = "3"; custom.home_wg_suffix = "3";
system.autoUpgrade.allowReboot = lib.mkForce false; system.autoUpgrade.allowReboot = lib.mkForce false;

View file

@ -4,8 +4,10 @@
modulesPath, modulesPath,
... ...
}: }:
{ {
system.stateVersion = "24.05";
boot.kernelParams = [ "resume_offset=39292928" ];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [