Move variables to where they are getting used

This commit is contained in:
Andreas Zweili 2024-04-09 20:19:35 +02:00
parent 9a8a9c2f57
commit 5e51d6380d
1 changed files with 28 additions and 27 deletions

View File

@ -32,21 +32,6 @@
(self.nixosConfigurations.${host}.extendModules { (self.nixosConfigurations.${host}.extendModules {
modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ]; modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ];
}).config.system.build.sdImage; }).config.system.build.sdImage;
# required for home-manager only setup {
overlay-unstable = final: prev: {
unstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
overlays = [ overlay-unstable ];
};
# }
raspis = { raspis = {
"git" = { }; "git" = { };
"plex" = { }; "plex" = { };
@ -89,20 +74,36 @@
{ {
images = nixpkgs.lib.attrsets.mapAttrs (name: _: mksdImage name) raspis; images = nixpkgs.lib.attrsets.mapAttrs (name: _: mksdImage name) raspis;
nixosConfigurations = raspiConfigs // pcConfigs; nixosConfigurations = raspiConfigs // pcConfigs;
homeConfigurations = { homeConfigurations =
"zweili@co-ws-con4" = home-manager.lib.homeManagerConfiguration { let
inherit pkgs; overlay-unstable = final: prev: {
modules = [ unstable = import inputs.nixpkgs-unstable {
./home-manager/profiles/work-wsl.nix system = "x86_64-linux";
inputs.agenix.homeManagerModules.age config.allowUnfree = true;
]; };
extraSpecialArgs = { };
inherit inputs; pkgs = import inputs.nixpkgs {
nixosConfig = { system = "x86_64-linux";
az-username = "zweili"; config = {
allowUnfree = true;
};
overlays = [ overlay-unstable ];
};
in
{
"zweili@co-ws-con4" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home-manager/profiles/work-wsl.nix
inputs.agenix.homeManagerModules.age
];
extraSpecialArgs = {
inherit inputs;
nixosConfig = {
az-username = "zweili";
};
}; };
}; };
}; };
};
}; };
} }