diff options
| author | adikro <adikro@disroot.org> | 2026-01-19 11:43:42 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-19 11:43:42 +0100 |
| commit | d2571482b4eb5660fd92727efb4e5254df06e45e (patch) | |
| tree | b94282d6f250a82587c25689cba8a1dc1a2f2d96 /flake.nix | |
| parent | 760a0edc2937fab375898bbd2f2a3011eb8c9756 (diff) | |
a lot of changes
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; + }; }; }; - }; } |
