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 {
modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ];
}).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 = {
"git" = { };
"plex" = { };
@ -89,20 +74,36 @@
{
images = nixpkgs.lib.attrsets.mapAttrs (name: _: mksdImage name) raspis;
nixosConfigurations = raspiConfigs // pcConfigs;
homeConfigurations = {
"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";
homeConfigurations =
let
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 ];
};
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";
};
};
};
};
};
};
}