summaryrefslogtreecommitdiff
path: root/hosts/common/desktop
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-22 02:22:10 -0500
committerseth <[email protected]>2023-02-22 02:22:10 -0500
commit01ccb0cead584733e6c89fcad44c441fe05bc5c7 (patch)
tree54703a80882ed366b237c27f88b858f3106eb0e3 /hosts/common/desktop
parent9c4a04054f5c72c3c66973b0bea06d10e042947c (diff)
switch back to alejandra
nixpkgs-fmt is weird...
Diffstat (limited to 'hosts/common/desktop')
-rw-r--r--hosts/common/desktop/default.nix23
-rw-r--r--hosts/common/desktop/gnome.nix2
-rw-r--r--hosts/common/desktop/plasma.nix2
3 files changed, 13 insertions, 14 deletions
diff --git a/hosts/common/desktop/default.nix b/hosts/common/desktop/default.nix
index 3496df9..3a651ea 100644
--- a/hosts/common/desktop/default.nix
+++ b/hosts/common/desktop/default.nix
@@ -1,22 +1,21 @@
-{ lib
-, desktop
-, ...
-}:
-let
- gui = desktop != "";
-in
{
+ lib,
+ desktop,
+ ...
+}: let
+ gui = desktop != "";
+in {
imports =
- [ ]
+ []
++ (
if (desktop == "gnome")
- then [ ./gnome.nix ]
- else [ ]
+ then [./gnome.nix]
+ else []
)
++ (
if (desktop == "plasma")
- then [ ./plasma.nix ]
- else [ ]
+ then [./plasma.nix]
+ else []
);
environment.noXlibs = lib.mkForce false;
diff --git a/hosts/common/desktop/gnome.nix b/hosts/common/desktop/gnome.nix
index f8d59a5..b72d757 100644
--- a/hosts/common/desktop/gnome.nix
+++ b/hosts/common/desktop/gnome.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }: {
+{pkgs, ...}: {
environment = {
gnome.excludePackages = with pkgs; [
epiphany
diff --git a/hosts/common/desktop/plasma.nix b/hosts/common/desktop/plasma.nix
index cd31983..61dc1da 100644
--- a/hosts/common/desktop/plasma.nix
+++ b/hosts/common/desktop/plasma.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }: {
+{pkgs, ...}: {
services.xserver = {
displayManager.sddm.enable = true;
desktopManager.plasma5 = {