diff options
| author | Vineet Kumar <git@vineetk.net> | 2024-08-09 17:37:42 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2024-08-09 17:38:01 -0400 |
| commit | 97c213ebae30c23073ed90ad55658f61a9e84ae1 (patch) | |
| tree | b37a8c6da93d2c45f35915a8d7a942fb24d77124 /flake.nix | |
start working on using nixos
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..06b7aa4 --- /dev/null +++ b/flake.nix | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | description = "simple nixos flake"; | ||
| 3 | |||
| 4 | inputs = { | ||
| 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; | ||
| 6 | home-manager.url = "github:nix-community/home-manager"; | ||
| 7 | }; | ||
| 8 | |||
| 9 | outputs = { self, nixpkgs, ... }@attrs: { | ||
| 10 | # TODO: deduplicate this | ||
| 11 | nixosConfigurations.demiurge = nixpkgs.lib.nixosSystem { | ||
| 12 | system = "x86_64-linux"; | ||
| 13 | specialArgs = attrs; | ||
| 14 | modules = [ ./hosts/demiurge ]; | ||
| 15 | }; | ||
| 16 | nixosConfigurations.lappy = nixpkgs.lib.nixosSystem { | ||
| 17 | system = "x86_64-linux"; | ||
| 18 | specialArgs = attrs; | ||
| 19 | modules = [ ./hosts/lappy ]; | ||
| 20 | }; | ||
| 21 | }; | ||
| 22 | } | ||
