diff options
author | Linnnus <[email protected]> | 2024-02-13 17:38:25 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-02-13 17:39:52 +0100 |
commit | cfac122324e3d05f2925673e99feacf8c3602e0c (patch) | |
tree | 73eed7262b94f3678f38f32ba951970e2d0bd066 /modules/nixos/graphics | |
parent | bbbdbd1094f1f09b8075da88f6b412d2e4af80ca (diff) |
tmp: Move modules/nixos to services/ for shared and hosts/ahmed for private
Diffstat (limited to 'modules/nixos/graphics')
-rw-r--r-- | modules/nixos/graphics/default.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/modules/nixos/graphics/default.nix b/modules/nixos/graphics/default.nix deleted file mode 100644 index f54d043..0000000 --- a/modules/nixos/graphics/default.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 - ]; - }; -} |