diff options
| author | seth <[email protected]> | 2024-01-07 18:13:53 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-07 18:13:59 -0500 |
| commit | 2b354838edecc32c59d3c7ddf35e6cfe06cfe268 (patch) | |
| tree | ee0b5420f0b55912de13dafb65da931bdf713798 /systems/default.nix | |
| parent | a22a2b43128c008a89c4db79f3afa50699f3324f (diff) | |
tree-wide: localize imports
i shouldn't be editing systems/default.nix to remove a module only for
glados
Diffstat (limited to 'systems/default.nix')
| -rw-r--r-- | systems/default.nix | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/systems/default.nix b/systems/default.nix index 47f6bf6..ae37e1c 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -26,7 +26,7 @@ mapDarwin = mapSystems inputs.darwin.lib.darwinSystem; mapNixOS = mapSystems inputs.nixpkgs.lib.nixosSystem; - inherit (import ./common.nix {inherit inputs self;}) darwin nixos server; + common = import ./common.nix {inherit inputs self;}; in { imports = [./deploy.nix]; @@ -34,42 +34,25 @@ in { darwinConfigurations = mapDarwin { caroline = { system = "x86_64-darwin"; - modules = darwin; + modules = common.darwin; }; }; nixosConfigurations = mapNixOS { glados = { system = "x86_64-linux"; - modules = with inputs; - [ - lanzaboote.nixosModules.lanzaboote - nixos-hardware.nixosModules.common-gpu-nvidia-nonprime - nixos-hardware.nixosModules.common-pc-ssd - { - hardware.nvidia.modesetting.enable = true; - } - ] - ++ nixos; + modules = common.personal; }; glados-wsl = { system = "x86_64-linux"; - modules = - [ - inputs.nixos-wsl.nixosModules.wsl - ] - ++ nixos; + modules = common.personal; }; atlas = { builder = inputs.nixpkgs-stable.lib.nixosSystem; system = "aarch64-linux"; - modules = with inputs; - [ - teawiebot.nixosModules.default - ] - ++ server; + modules = common.server; }; }; |
