mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
nixos: Directory optionality fixes
This commit is contained in:
parent
016a0d305c
commit
5f2309c773
1 changed files with 7 additions and 2 deletions
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
imports =
|
||||
[ (import (./hosts + "/${hostName}/nixos")) ./profiles/common/nixos.nix ]
|
||||
++ lib.optional (builtins.pathExists ./private/hosts)
|
||||
++ lib.optional
|
||||
(builtins.pathExists (./private/hosts + "/${hostName}/nixos"))
|
||||
(import (./private/hosts + "/${hostName}/nixos"))
|
||||
++ lib.optional (builtins.pathExists ./private/profile)
|
||||
./private/profile/nixos;
|
||||
|
|
@ -35,7 +36,11 @@
|
|||
|
||||
users = {
|
||||
kat = {
|
||||
imports = [ ./home.nix (import (./hosts + "/${hostName}/home")) ];
|
||||
imports = [ ./home.nix ] ++ lib.optional
|
||||
(builtins.pathExists (./hosts + "/${hostName}/home"))
|
||||
(import (./hosts + "/${hostName}/home")) ++ lib.optional
|
||||
(builtins.pathExists (./private/hosts + "/${hostName}/home"))
|
||||
(import (./private/hosts + "/${hostName}/home"));
|
||||
|
||||
options = {
|
||||
deploy.profile.kat = lib.mkEnableOption "uhh meow";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue