Switch slab to mkSystem

This commit is contained in:
NullBite 2024-01-24 00:04:57 +01:00
parent 991320105d
commit 7b90856ce7
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 10 additions and 22 deletions

View File

@ -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";

View File

@ -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";