summaryrefslogtreecommitdiff
path: root/hosts/ahmed/graphics.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-03 19:24:59 +0200
committerLinnnus <[email protected]>2023-10-08 13:14:15 +0200
commitc475c0077764acea6f12b88b24d20b7b2720cd5c (patch)
tree6f0fb4d9a16dd792762d5884d99e8696617de6ce /hosts/ahmed/graphics.nix
parentc868c8a61fd3b9a4b404001aba0c4c6b7318a4a3 (diff)
Move personal modules hosts/ahmed -> modules/nixos/
Diffstat (limited to 'hosts/ahmed/graphics.nix')
-rw-r--r--hosts/ahmed/graphics.nix37
1 files changed, 0 insertions, 37 deletions
diff --git a/hosts/ahmed/graphics.nix b/hosts/ahmed/graphics.nix
deleted file mode 100644
index f54d043..0000000
--- a/hosts/ahmed/graphics.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-# This module configures a basic graphical environment. I use this sometimes for
-# ahmed when muhammed is being repaired.
-{
- config,
- lib,
- pkgs,
- ...
-}: let
- inherit (lib) mkEnableOption mkIf;
-
- cfg = config.modules.graphics;
-in {
- options.modules.graphics.enable = mkEnableOption "basic graphical environment";
-
- config = mkIf cfg.enable {
- services.xserver.enable = true;
-
- # Match console keyboard layout but swap capslock and escape.
- # TODO: Create a custom keymap with esc/capslock swap so console can use it.
- services.xserver.layout = config.console.keyMap;
- services.xserver.xkbOptions = "caps:swapescape";
-
- # Enable touchpad support.
- services.xserver.libinput.enable = true;
-
- services.xserver.windowManager.dwm.enable = true;
-
- # Enable sound.
- sound.enable = true;
- hardware.pulseaudio.enable = true;
-
- environment.systemPackages = with pkgs; [
- st # suckless terminal - dwm is pretty sucky without this
- dmenu # application launcher
- ];
- };
-}