fix: try breaking it out different

This commit is contained in:
2025-06-17 15:28:07 +01:00
committed by Emma Thorpe
parent c1b3d78213
commit bed08ad165
2 changed files with 16 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
{config, pkgs, lib, ...}:
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
lib.mkIf ( profile == "work" ) {
home-manager.users.emmathorpe.imports = [ ./home.nix ../system/modules/work/default.nix ];
};
lib.mkIf ( profile == "home" ) {
home-manager.users.emmathorpe.imports = [ ./home.nix ];
};
}
+2 -7
View File
@@ -35,23 +35,18 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.emmathorpe = import ./emmathorpe/home.nix;
home-manager.users.emmathorpe = import ./system/modules/work/default.nix;
}
];
};
nixosConfigurations.emmathorpe-edaas = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
let profile = "work";
modules = [
./system/machine/EDaaS/configuration.nix
./emmathorpe/user.nix
./emmathorpe/swaywm.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.emmathorpe = import ./emmathorpe/home.nix;
}
./emmathorpe/home-manager-module.nix
];
};
};