merged home manager configs for all systems

This commit is contained in:
Leyla Becker 2024-10-03 17:06:42 +02:00
parent da7b146213
commit 232f31d23d

View file

@ -64,18 +64,20 @@
in { in {
packages = forEachPkgs (pkgs: import ./pkgs {inherit pkgs;}); packages = forEachPkgs (pkgs: import ./pkgs {inherit pkgs;});
nixosConfigurations = { nixosConfigurations = let
# Leyla Laptop home-manager-config = {
horizon = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = {inherit inputs;}; home-manager.extraSpecialArgs = {inherit inputs;};
} };
in
{
# Leyla Laptop
horizon = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
home-manager.nixosModules.home-manager home-manager-config
./hosts/horizon/configuration.nix ./hosts/horizon/configuration.nix
nixos-hardware.nixosModules.framework-11th-gen-intel nixos-hardware.nixosModules.framework-11th-gen-intel
]; ];
@ -84,13 +86,7 @@
twilight = nixpkgs.lib.nixosSystem { twilight = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager home-manager-config
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = {inherit inputs;};
}
./hosts/twilight/configuration.nix ./hosts/twilight/configuration.nix
]; ];
}; };
@ -99,13 +95,7 @@
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager home-manager-config
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = {inherit inputs;};
}
./hosts/defiant/disko-config.nix ./hosts/defiant/disko-config.nix
./hosts/defiant/configuration.nix ./hosts/defiant/configuration.nix
]; ];