From d2571482b4eb5660fd92727efb4e5254df06e45e Mon Sep 17 00:00:00 2001 From: adikro Date: Mon, 19 Jan 2026 11:43:42 +0100 Subject: a lot of changes --- flake.nix | 50 +++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1059a42..ca0c328 100644 --- a/flake.nix +++ b/flake.nix @@ -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; + }; }; }; - }; } -- cgit v1.3