diff options
Diffstat (limited to 'hosts/omar/desktop-environment')
-rw-r--r-- | hosts/omar/desktop-environment/default.nix | 18 | ||||
-rw-r--r-- | hosts/omar/desktop-environment/input.nix | 10 | ||||
-rw-r--r-- | hosts/omar/desktop-environment/window-manager.nix | 37 |
3 files changed, 0 insertions, 65 deletions
diff --git a/hosts/omar/desktop-environment/default.nix b/hosts/omar/desktop-environment/default.nix deleted file mode 100644 index 52800e0..0000000 --- a/hosts/omar/desktop-environment/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -# This module configures a desktop environment specific to this host. -{ - imports = [ - ./window-manager.nix - ./input.nix - ]; - - # Enable the X11 windowing system. - services.xserver.enable = true; - - # Enable sound. - # hardware.pulseaudio.enable = true; - # OR - # services.pipewire = { - # enable = true; - # pulse.enable = true; - # }; -} diff --git a/hosts/omar/desktop-environment/input.nix b/hosts/omar/desktop-environment/input.nix deleted file mode 100644 index 63cddca..0000000 --- a/hosts/omar/desktop-environment/input.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - # Configure keymap in X11 - services.xserver.xkb.layout = "dk"; - services.xserver.xkb.options = "caps:escape"; - - console.useXkbConfig = true; - - # Enable touchpad support (enabled default in most desktopManager). - services.libinput.enable = true; -} diff --git a/hosts/omar/desktop-environment/window-manager.nix b/hosts/omar/desktop-environment/window-manager.nix deleted file mode 100644 index 0a6d878..0000000 --- a/hosts/omar/desktop-environment/window-manager.nix +++ /dev/null @@ -1,37 +0,0 @@ -{pkgs, ...}: { - services.xserver.windowManager.dwm.enable = true; - - # Show battery and clock in status bar. This is a background daemon which - # updates the root window, which DWM uses for status. - systemd.user.services.dwm-battery = { - description = "Battery status update"; - partOf = ["graphical-session.target"]; - wantedBy = ["graphical-session.target"]; - - serviceConfig.ExecStart = pkgs.writeShellScript "dwm-battery" '' - while true; do - echo -n "$(date +%H:%M) - "; - - # See: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power - case "$(cat /sys/class/power_supply/BAT0/status)" in - Charging) echo -n "🔋 " ;; - Discharging) echo -n "🪫 " ;; - "Not charging") echo -n "🪫 " ;; - Full) echo -n "🔋 " ;; - Unknown) echo -n "? " ;; - ""|*) echo -n "?? " ;; - esac - - echo -n "$(cat /sys/class/power_supply/BAT0/capacity)%" - - echo - sleep 5 - done | ${pkgs.dwm-setstatus}/bin/dwm-setstatus - ''; - }; - - environment.systemPackages = with pkgs; [ - st - dmenu - ]; -} |