Move the home-manager imports to common

This commit is contained in:
Andreas Zweili 2024-04-22 20:49:27 +02:00
parent 8c80954be8
commit 9f217f028e
5 changed files with 7 additions and 16 deletions

View File

@ -99,10 +99,7 @@
{
"zweili@co-ws-con4" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home-manager/profiles/work-wsl.nix
inputs.agenix.homeManagerModules.age
];
modules = [ ./home-manager/profiles/work-wsl.nix ];
extraSpecialArgs = {
inherit inputs;
nixosConfig = {

View File

@ -48,13 +48,7 @@ inputs.nixpkgs.lib.nixosSystem {
{ az-username = username; }
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs system;
};
home-manager.users.${username}.imports = [
"${inputs.self}/home-manager/profiles/${home-module}.nix"
];

View File

@ -55,13 +55,7 @@ inputs.nixpkgs.lib.nixosSystem {
{ az-username = username; }
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs system;
};
home-manager.users.${username}.imports = [
"${inputs.self}/home-manager/profiles/${home-module}.nix"
];

View File

@ -2,6 +2,7 @@
{
imports = [
inputs.agenix.nixosModules.age
inputs.home-manager.nixosModules.home-manager
./hardware/bluetooth
./hardware/dvd
./hardware/nvidia

View File

@ -183,6 +183,11 @@ in
'';
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs system;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave