diff options
| -rw-r--r-- | flake.lock | 22 | ||||
| -rw-r--r-- | flake.nix | 38 | ||||
| -rw-r--r-- | home.nix | 10 |
3 files changed, 40 insertions, 30 deletions
| @@ -2,7 +2,9 @@ | |||
| 2 | "nodes": { | 2 | "nodes": { |
| 3 | "home-manager": { | 3 | "home-manager": { |
| 4 | "inputs": { | 4 | "inputs": { |
| 5 | "nixpkgs": "nixpkgs" | 5 | "nixpkgs": [ |
| 6 | "nixpkgs" | ||
| 7 | ] | ||
| 6 | }, | 8 | }, |
| 7 | "locked": { | 9 | "locked": { |
| 8 | "lastModified": 1723015306, | 10 | "lastModified": 1723015306, |
| @@ -20,22 +22,6 @@ | |||
| 20 | }, | 22 | }, |
| 21 | "nixpkgs": { | 23 | "nixpkgs": { |
| 22 | "locked": { | 24 | "locked": { |
| 23 | "lastModified": 1722185531, | ||
| 24 | "narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=", | ||
| 25 | "owner": "NixOS", | ||
| 26 | "repo": "nixpkgs", | ||
| 27 | "rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d", | ||
| 28 | "type": "github" | ||
| 29 | }, | ||
| 30 | "original": { | ||
| 31 | "owner": "NixOS", | ||
| 32 | "ref": "nixos-unstable", | ||
| 33 | "repo": "nixpkgs", | ||
| 34 | "type": "github" | ||
| 35 | } | ||
| 36 | }, | ||
| 37 | "nixpkgs_2": { | ||
| 38 | "locked": { | ||
| 39 | "lastModified": 1722987190, | 25 | "lastModified": 1722987190, |
| 40 | "narHash": "sha256-68hmex5efCiM2aZlAAEcQgmFI4ZwWt8a80vOeB/5w3A=", | 26 | "narHash": "sha256-68hmex5efCiM2aZlAAEcQgmFI4ZwWt8a80vOeB/5w3A=", |
| 41 | "owner": "nixos", | 27 | "owner": "nixos", |
| @@ -53,7 +39,7 @@ | |||
| 53 | "root": { | 39 | "root": { |
| 54 | "inputs": { | 40 | "inputs": { |
| 55 | "home-manager": "home-manager", | 41 | "home-manager": "home-manager", |
| 56 | "nixpkgs": "nixpkgs_2" | 42 | "nixpkgs": "nixpkgs" |
| 57 | } | 43 | } |
| 58 | } | 44 | } |
| 59 | }, | 45 | }, |
| @@ -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 | } |
diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..c84ce53 --- /dev/null +++ b/home.nix | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | { config, pkgs, ... }: | ||
| 2 | |||
| 3 | { | ||
| 4 | home.username = "vin"; | ||
| 5 | home.homeDirectory = "/home/vin"; | ||
| 6 | |||
| 7 | home.stateVersion = "24.05"; | ||
| 8 | |||
| 9 | programs.home-manager.enable = true; | ||
| 10 | } | ||
