diff --git a/flake.nix b/flake.nix index f570e90..ca0b2d2 100644 --- a/flake.nix +++ b/flake.nix @@ -122,29 +122,10 @@ homeManagerModules = (import ./modules/home-manager) moduleInputs; nixosConfigurations = { - slab = lib.nixosSystem rec { + slab = mkSystem { system = "x86_64-linux"; - modules = [ - ./hosts/slab/configuration.nix - ./hosts/slab/nvidia-optimus.nix - ./system/remote.nix - ./system/plasma.nix - ./system/fragments/opengl.nix - ./system/gaming.nix - ./system/android.nix - # ./system/hyprland.nix - (homeManagerInit { - # module = import ./hosts/slab/home.nix; - inherit system; - stateVersion = "23.11"; - # rootModule = import ./home/root.nix; - userModules = { ${username} = [(import ./hosts/slab/home.nix)]; root = [(import ./home/root.nix)]; }; - }) - ]; - specialArgs = { - inherit inputs outputs vars; - extraPkgs = mkExtraPkgs system; - }; + hostname = "slab"; + stateVersion = "23.11"; }; nullbox = lib.nixosSystem rec { system = "x86_64-linux"; diff --git a/hosts/slab/configuration.nix b/hosts/slab/configuration.nix index 6548b65..c26dd38 100644 --- a/hosts/slab/configuration.nix +++ b/hosts/slab/configuration.nix @@ -16,6 +16,13 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + + ./nvidia-optimus.nix + ../../system/remote.nix + ../../system/plasma.nix + ../../system/fragments/opengl.nix + ../../system/gaming.nix + ../../system/android.nix ]; networking.hostName = "slab";