mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix list vs non-list
This commit is contained in:
parent
7537fb33b5
commit
d13d0e85ef
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ lib }: { hostName, profiles }: with lib; filter builtins.pathExists [
|
||||
(../../config/hosts + "/${hostName}/nixos.nix")
|
||||
(../../config/trusted/hosts + "/${hostName}/nixos.nix")
|
||||
] ++ profiles.base.imports ++ singleton {
|
||||
] ++ if builtins.isList profiles.base.imports then profiles.base.imports
|
||||
else singleton profiles.base.imports ++ singleton {
|
||||
home-manager.users.kat = {
|
||||
imports = filter builtins.pathExists [
|
||||
(../../config/hosts + "/${hostName}/home.nix")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue