Move system for home-manager into a variable

This commit is contained in:
Andreas Zweili 2024-04-09 20:21:58 +02:00
parent 5e51d6380d
commit 2a89f9b32b
1 changed files with 3 additions and 2 deletions

View File

@ -76,18 +76,19 @@
nixosConfigurations = raspiConfigs // pcConfigs; nixosConfigurations = raspiConfigs // pcConfigs;
homeConfigurations = homeConfigurations =
let let
system = "x86_64-linux";
overlay-unstable = final: prev: { overlay-unstable = final: prev: {
unstable = import inputs.nixpkgs-unstable { unstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true; config.allowUnfree = true;
inherit system;
}; };
}; };
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config = { config = {
allowUnfree = true; allowUnfree = true;
}; };
overlays = [ overlay-unstable ]; overlays = [ overlay-unstable ];
inherit system;
}; };
in in
{ {