refactor(home-manager): try to not repeating myself
This commit is contained in:
parent
b0d455217f
commit
e862d4b35c
3 changed files with 21 additions and 24 deletions
13
home-manager/base.nix
Normal file
13
home-manager/base.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, hostname, ...}:
|
||||
{
|
||||
programs.home-manager.enable = true;
|
||||
home.sessionPath = [
|
||||
"$HOME/.local/bin"
|
||||
];
|
||||
imports = [
|
||||
../hosts/${hostname}/home-config.nix
|
||||
../modules/home-manager/default.nix
|
||||
] ++ lib.optional (
|
||||
builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix
|
||||
) ../hosts/${hostname}/includes/home-manager.nix;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue