diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 50 |
1 files changed, 31 insertions, 19 deletions
@@ -4,6 +4,9 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + # Snapshot of nixpkgs with the 6.17.13 kernel for compatibility + kernelv.url = "github:NixOS/nixpkgs/52e64396e98aef211f4127416dbdae17a01b3d3f"; + home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; @@ -21,7 +24,7 @@ waybar = { url = "github:Alexays/Waybar"; - inputs.nixpkgs.follows= "nixpkgs"; + inputs.nixpkgs.follows = "nixpkgs"; }; yazi = { @@ -55,31 +58,40 @@ }; }; - outputs = inputs @ { self, nixpkgs, ... }: + outputs = + { self, nixpkgs, ... }@inputs: let - username = "adam"; - mkHost = { hostname, path }: + mkHost = + { + hostname, + path, + user ? "adam", + }: nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs username; }; + specialArgs = { + inherit inputs; + username = user; + }; modules = [ path { networking.hostName = hostname; } ]; }; - in { - nixosConfigurations = { - szpont = mkHost { - hostname = "szpont"; - path = ./hosts/desktop/configuration.nix; - }; - laptop = mkHost { - hostname = "laptop"; - path = ./hosts/laptop/configuration.nix; - }; - thinkpad = mkHost { - hostname = "thinkpad"; - path = ./hosts/thinkpad/configuration.nix; + in + { + nixosConfigurations = { + szpont = mkHost { + hostname = "szpont"; + path = ./hosts/desktop/configuration.nix; + }; + laptop = mkHost { + hostname = "laptop"; + path = ./hosts/laptop/configuration.nix; + }; + thinkpad = mkHost { + hostname = "thinkpad"; + path = ./hosts/thinkpad/configuration.nix; + }; }; }; - }; } |
