diff options
| author | seth <[email protected]> | 2024-09-07 11:51:57 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-09-07 12:00:19 -0400 |
| commit | dee6c5d9cbc12ff3012a27a5e69dfe331089310b (patch) | |
| tree | 290b5862448b781776f6606534829d4a35c2ac7f /systems | |
| parent | 8539ad118cd34e8f51e736e1c6bec7a19f0e15f1 (diff) | |
tree-wide: use flake module for configurations
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/darwin.nix | 14 | ||||
| -rw-r--r-- | systems/nixos.nix | 24 |
2 files changed, 16 insertions, 22 deletions
diff --git a/systems/darwin.nix b/systems/darwin.nix index ec67d09..120e088 100644 --- a/systems/darwin.nix +++ b/systems/darwin.nix @@ -1,13 +1,7 @@ -{ self, ... }: { - flake = { - darwinConfigurations = - let - # see ./lib/builders.nix - inherit (self.lib) darwinSystem; - in - { - caroline = darwinSystem { modules = [ ./caroline ]; }; - }; + darwinConfigurations = { + caroline = { + modules = [ ./caroline ]; + }; }; } diff --git a/systems/nixos.nix b/systems/nixos.nix index b2a973e..f610ea4 100644 --- a/systems/nixos.nix +++ b/systems/nixos.nix @@ -1,17 +1,17 @@ -{ self, ... }: +{ inputs, ... }: { - flake = { - nixosConfigurations = - let - # see ./lib/builders.nix - inherit (self.lib) nixosSystem nixosSystemStable; - in - { - glados = nixosSystem { modules = [ ./glados ]; }; + nixosConfigurations = { + glados = { + modules = [ ./glados ]; + }; - glados-wsl = nixosSystem { modules = [ ./glados-wsl ]; }; + glados-wsl = { + modules = [ ./glados-wsl ]; + }; - atlas = nixosSystemStable { modules = [ ./atlas ]; }; - }; + atlas = { + nixpkgs = inputs.nixpkgs-stable; + modules = [ ./atlas ]; + }; }; } |
