From b2ff95f11badff4f8f271fa511af82a0996aaf5d Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 17 Jun 2023 22:46:03 -0400 Subject: [PATCH] udiskie: Only enable if hyprland Conditional imports like this could make it easier to import everything at once and selectively exclude as needed. --- home/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/default.nix b/home/default.nix index 528fb155..836631ea 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,3 +1,5 @@ +{ lib, config, ... }: + { home-manager.sharedModules = [ ./dunst.nix @@ -20,7 +22,7 @@ ./rofi.nix ./swaylock.nix ./thunar.nix - ./udiskie.nix + (lib.mkIf (config.programs.hyprland.enable == true) ./udiskie.nix) ./waybar.nix ./waycorner.nix ./xcursor.nix