summaryrefslogtreecommitdiff
path: root/hosts/common/desktop/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-20 01:53:23 -0500
committerseth <[email protected]>2023-02-20 01:53:23 -0500
commit0957b051ef4befd86ce97deef04f5095bea9543b (patch)
treea669111fa7b0123a4e77819ddce0c0c75bef554f /hosts/common/desktop/default.nix
parenta276cdbfa83425423c096d8049e6e29770018e31 (diff)
start using nixpkgs-fmt
Diffstat (limited to 'hosts/common/desktop/default.nix')
-rw-r--r--hosts/common/desktop/default.nix45
1 files changed, 23 insertions, 22 deletions
diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix
index 3f6aba7..3496df9 100644
--- a/hosts/common/desktop/default.nix
+++ b/hosts/common/desktop/default.nix
@@ -1,25 +1,26 @@
+{ lib
+, desktop
+, ...
+}:
+let
+ gui = desktop != "";
+in
{
- lib,
- desktop,
- ...
-}: let
- gui = desktop != "";
-in {
- imports =
- []
- ++ (
- if (desktop == "gnome")
- then [./gnome.nix]
- else []
- )
- ++ (
- if (desktop == "plasma")
- then [./plasma.nix]
- else []
- );
+ imports =
+ [ ]
+ ++ (
+ if (desktop == "gnome")
+ then [ ./gnome.nix ]
+ else [ ]
+ )
+ ++ (
+ if (desktop == "plasma")
+ then [ ./plasma.nix ]
+ else [ ]
+ );
- environment.noXlibs = lib.mkForce false;
- programs.xwayland.enable = gui;
- services.xserver.enable = gui;
- xdg.portal.enable = gui;
+ environment.noXlibs = lib.mkForce false;
+ programs.xwayland.enable = gui;
+ services.xserver.enable = gui;
+ xdg.portal.enable = gui;
}