diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 22:36:02 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 23:06:44 +0100 |
| commit | 54ec124ae568dac37a11348ce45e6f21737ad556 (patch) | |
| tree | c09c929925a36670599c91f91314f378421d6bea /modules/nixos/personal/gui.nix | |
| parent | fdff621a490cb707a212e261e9f738c531ed45eb (diff) | |
nixos: deprecate 24.05
Diffstat (limited to 'modules/nixos/personal/gui.nix')
| -rw-r--r-- | modules/nixos/personal/gui.nix | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/modules/nixos/personal/gui.nix b/modules/nixos/personal/gui.nix index e313117..3b02b39 100644 --- a/modules/nixos/personal/gui.nix +++ b/modules/nixos/personal/gui.nix @@ -48,32 +48,19 @@ in { }; } # fragile conf - (lib.mkIf cfg.i3.enable ( - lib.mkMerge [ - { - services = { - xserver = { - desktopManager.xfce = { - noDesktop = true; - enableXfwm = false; - }; - windowManager.i3.enable = true; - }; + (lib.mkIf cfg.i3.enable { + services = { + displayManager.defaultSession = "xfce+i3"; + libinput.enable = true; + xserver = { + desktopManager.xfce = { + noDesktop = true; + enableXfwm = false; }; - } - ( - let - conf = { - displayManager.defaultSession = "xfce+i3"; - libinput.enable = true; - }; - in - if (builtins.compareVersions lib.trivial.version "23.11" > 0) - then {services = conf;} - else {services.xserver = conf;} - ) - ] - )) + windowManager.i3.enable = true; + }; + }; + }) (lib.mkIf cfg.stylix.enable ({ assertions = let missingArgAssertion = name: { |
