Make home-manager declarations more clean

inky
Elnu 2 years ago
parent 4f9ca94dc4
commit 507da92a6e

@ -24,14 +24,16 @@ in
networking.hostName = "x220";
}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
};
};
}
];
@ -51,14 +53,14 @@ in
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
};
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
};
};
}
];
@ -75,14 +77,16 @@ in
networking.hostName = "virtualbox";
}
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [
(import ./home.nix)
(import ./virtualbox/home.nix)
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./virtualbox/home.nix)
];
};
};
}
];

Loading…
Cancel
Save