mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nix): refactored out common
This commit is contained in:
parent
66f6c5a702
commit
4662ca2acc
5 changed files with 12 additions and 7 deletions
12
nix/lib.nix
12
nix/lib.nix
|
|
@ -57,7 +57,12 @@ in {
|
|||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.leana = import (./home/leana + "@${hostname}");
|
||||
users.leana = {...}: {
|
||||
imports = [
|
||||
(./home/leana + "@${hostname}")
|
||||
./home/common
|
||||
];
|
||||
};
|
||||
extraSpecialArgs = args;
|
||||
};
|
||||
}
|
||||
|
|
@ -74,6 +79,9 @@ in {
|
|||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = args.pkgs;
|
||||
extraSpecialArgs = args;
|
||||
modules = [(./home/leana + "@${hostname}")];
|
||||
modules = [
|
||||
(./home/leana + "@${hostname}")
|
||||
./home/common
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue