officially cooked

This commit is contained in:
alisceon 2025-07-23 19:46:19 +02:00
parent 9f8084c1cf
commit 92f12974fa
7 changed files with 338 additions and 284 deletions

View file

@ -18,41 +18,50 @@
inherit system;
config.allowUnfree = true;
};
sharedModules = [
./hosts/common.nix
];
in
{
nixosConfigurations = {
electra = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{
nixpkgs.config.allowUnfree = true;
}
./hosts/electra/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alisceon = import ./home/users/alisceon.nix;
home-manager.backupFileExtension = "backup";
}
];
};
tower = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
modules = sharedModules ++ [
{
nixpkgs.config.allowUnfree = true;
}
./hosts/tower/configuration.nix
home-manager.nixosModules.home-manager
{
({ config, ...}: {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alisceon = import ./home/users/alisceon.nix;
home-manager.extraSpecialArgs = {
inherit (config.networking) hostName;
}; # end extraSpecialArgs
home-manager.users.alisceon = import ./home/alisceon.nix;
home-manager.backupFileExtension = "backup";
}) # end home manager
]; # end modules
}; # end electra
tower = nixpkgs.lib.nixosSystem {
inherit system;
modules = sharedModules ++ [
{
nixpkgs.config.allowUnfree = true;
}
];
};
};
};
}
./hosts/tower/configuration.nix
home-manager.nixosModules.home-manager
({ config, ...}: {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit (config.networking) hostName;
}; #end extraSpecialArgs
home-manager.users.alisceon = import ./home/alisceon.nix;
home-manager.backupFileExtension = "backup";
}) # end home manager
]; # end modules
}; # end tower
}; # end nixos conf
}; # end "in"
} # end file