ref(nix): refactored out common

This commit is contained in:
Léana 江 2024-02-12 17:47:12 +01:00 committed by Léana 江
parent 66f6c5a702
commit 4662ca2acc
5 changed files with 12 additions and 7 deletions

View file

@ -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
];
};
}