From 307ac8387b941447bad9c400aea299388ec6bc7e Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 9 Jan 2025 18:53:15 +1000 Subject: [PATCH] tidied and trying mkIf options for per-host modules --- core/modules/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/default.nix b/core/modules/default.nix index 6dc49e6..6af9a77 100755 --- a/core/modules/default.nix +++ b/core/modules/default.nix @@ -1,6 +1,6 @@ { config, lib, ... }: - -{ +let hostname = config.networking.hostName; +in { imports = [ @@ -9,8 +9,8 @@ ./misc.nix # stuff that doesn't work in `/home` :( ./audio.nix # musnix and ... audio ... config ./display.nix # declarations for display management - (lib.mkIf config.networking.hostName."hades" ./zfs) + (lib.mkIf config.networking.hostName."hades" [ ./zfs ]) - ]; + ]; # ++ lib.optionals(hostname == "hades" [ ./zfs ]; ) ; }