From 09140b0170c2549d677f1dd1c1dadfae53e6a770 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 8 Oct 2021 15:05:45 +0200 Subject: [PATCH] profiles: wm: add 'dragger' when a WM is set up --- profiles/wm/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/profiles/wm/default.nix b/profiles/wm/default.nix index 473d49d..1eeb7a8 100644 --- a/profiles/wm/default.nix +++ b/profiles/wm/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let cfg = config.my.profiles.wm; in @@ -23,5 +23,11 @@ in # Auto disk mounter my.home.udiskie.enable = true; }) + + (lib.mkIf (cfg.windowManager != null) { + environment.systemPackages = with pkgs; [ + ambroisie.dragger + ]; + }) ]; }