diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-20 15:28:23 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-20 15:28:23 +0200 |
commit | 80bd541af33df74bee32bfa7fc71af734687199c (patch) | |
tree | 1281da0666032d694153e42db278dd9bc8f13d40 | |
parent | Hosts: Remove uneeded "vm" host (diff) | |
download | nixos-config-80bd541af33df74bee32bfa7fc71af734687199c.tar.gz nixos-config-80bd541af33df74bee32bfa7fc71af734687199c.tar.bz2 nixos-config-80bd541af33df74bee32bfa7fc71af734687199c.zip |
fmt
-rw-r--r-- | hosts/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 8dc5674..7d1a4f1 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -28,9 +28,7 @@ let ]; }; extraArgs = { inherit pkgs inputs isIso isHardware user secrets timezone location; hostname = host; }; - #TODO: FIXME - extraSpecialModules = if isIso then extraModules ++ [ "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" ] else extraModules; - megaSpecialModules = if isHardware then extraSpecialModules ++ [ ../hardware/${hardware} ] else extraSpecialModules; + extraSpecialModules = extraModules ++ lib.optional isHardware ../hardware/${hardware} ++ lib.optional isIso "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"; in if isNixOS then @@ -53,7 +51,7 @@ let ]; }; } - ] ++ megaSpecialModules; + ] ++ extraSpecialModules; } else home-manager.lib.homeManagerConfiguration |