diff options
| author | Vineet Kumar <git@vineetk.net> | 2024-08-09 18:29:01 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2024-08-09 18:31:24 -0400 |
| commit | c912add857c1440032bebd723a16a2c16d3cdfa0 (patch) | |
| tree | df039e530fcb78e82f33b02285ad7be118bcf10f /flake.nix | |
| parent | 97c213ebae30c23073ed90ad55658f61a9e84ae1 (diff) | |
try using home-manager
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 38 |
1 files changed, 26 insertions, 12 deletions
| @@ -1,22 +1,36 @@ | |||
| 1 | { | 1 | { |
| 2 | description = "simple nixos flake"; | 2 | description = "my nixos configuration"; |
| 3 | 3 | ||
| 4 | inputs = { | 4 | inputs = { |
| 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; | 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; |
| 6 | home-manager.url = "github:nix-community/home-manager"; | 6 | |
| 7 | home-manager = { | ||
| 8 | url = "github:nix-community/home-manager"; | ||
| 9 | inputs.nixpkgs.follows = "nixpkgs"; | ||
| 10 | }; | ||
| 7 | }; | 11 | }; |
| 8 | 12 | ||
| 9 | outputs = { self, nixpkgs, ... }@attrs: { | 13 | outputs = { self, home-manager, nixpkgs, ... }@attrs: { |
| 10 | # TODO: deduplicate this | 14 | # TODO: deduplicate this |
| 11 | nixosConfigurations.demiurge = nixpkgs.lib.nixosSystem { | 15 | nixosConfigurations = { |
| 12 | system = "x86_64-linux"; | 16 | demiurge = nixpkgs.lib.nixosSystem { |
| 13 | specialArgs = attrs; | 17 | system = "x86_64-linux"; |
| 14 | modules = [ ./hosts/demiurge ]; | 18 | specialArgs = attrs; |
| 15 | }; | 19 | modules = [ ./hosts/demiurge ]; |
| 16 | nixosConfigurations.lappy = nixpkgs.lib.nixosSystem { | 20 | }; |
| 17 | system = "x86_64-linux"; | 21 | |
| 18 | specialArgs = attrs; | 22 | lappy = nixpkgs.lib.nixosSystem { |
| 19 | modules = [ ./hosts/lappy ]; | 23 | system = "x86_64-linux"; |
| 24 | specialArgs = attrs; | ||
| 25 | modules = [ | ||
| 26 | ./hosts/lappy | ||
| 27 | home-manager.nixosModules.home-manager { | ||
| 28 | home-manager.useGlobalPkgs = true; | ||
| 29 | home-manager.useUserPackages = true; | ||
| 30 | home-manager.users.vin = import ./home.nix; | ||
| 31 | } | ||
| 32 | ]; | ||
| 33 | }; | ||
| 20 | }; | 34 | }; |
| 21 | }; | 35 | }; |
| 22 | } | 36 | } |
