summaryrefslogtreecommitdiff
path: root/hosts/common/desktop/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-18 05:13:27 -0500
committerseth <[email protected]>2023-02-18 05:13:27 -0500
commit1d7b04a71c7222153ffa9cd48f73b51ea72204d1 (patch)
tree3d794209be0e2311dc76337c09c2cb39c52f6afb /hosts/common/desktop/default.nix
parent8a8059d9889afcbcd8a133b0b186e3a97ce7ac23 (diff)
major refactor
- `mkHost` now accepts an optional `specialArgs` argument to be passed to `nixosSystem()` - the `modules` argument for `mkHMUser` is now optional
Diffstat (limited to 'hosts/common/desktop/default.nix')
-rw-r--r--hosts/common/desktop/default.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix
index d6d42a6..3f6aba7 100644
--- a/hosts/common/desktop/default.nix
+++ b/hosts/common/desktop/default.nix
@@ -1,14 +1,22 @@
{
- config,
lib,
+ desktop,
...
}: let
- gui = config.sys.gui.enable;
+ gui = desktop != "";
in {
- imports = [
- ./gnome.nix
- ./plasma.nix
- ];
+ imports =
+ []
+ ++ (
+ if (desktop == "gnome")
+ then [./gnome.nix]
+ else []
+ )
+ ++ (
+ if (desktop == "plasma")
+ then [./plasma.nix]
+ else []
+ );
environment.noXlibs = lib.mkForce false;
programs.xwayland.enable = gui;