mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
Making the host import system take profiles as an argument
This commit is contained in:
parent
8446e95a5f
commit
526d03d18e
7 changed files with 57 additions and 21 deletions
|
|
@ -1,15 +1,11 @@
|
|||
{ lib }: hostName: with lib; filter builtins.pathExists [
|
||||
{ lib }: { hostName, profiles }: with lib; filter builtins.pathExists [
|
||||
(../../config/hosts + "/${hostName}/nixos.nix")
|
||||
(../../config/trusted/hosts + "/${hostName}/nixos.nix")
|
||||
../../config/trusted/profile
|
||||
../../config/profiles/base
|
||||
] ++ singleton {
|
||||
options.home-manager.users = mkOption {
|
||||
type = types.attrsOf (types.submoduleWith {
|
||||
modules = filter builtins.pathExists [
|
||||
(../../config/hosts + "/${hostName}/home.nix")
|
||||
(../../config/trusted/hosts + "/${hostName}/home.nix")
|
||||
];
|
||||
});
|
||||
] ++ profiles.base.imports ++ singleton {
|
||||
home-manager.users.kat = {
|
||||
imports = filter builtins.pathExists [
|
||||
(../../config/hosts + "/${hostName}/home.nix")
|
||||
(../../config/trusted/hosts + "/${hostName}/home.nix")
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue