diff options
author | Linnnus <[email protected]> | 2023-10-01 21:48:51 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-10-01 21:48:51 +0200 |
commit | 6d22256a85df7228a356a802dbc513c8abeeb2b7 (patch) | |
tree | eddc506e9cb0aa49c79c261a2995dd8de41135b7 /modules/graphics/default.nix | |
parent | 877db4137c34216fc2623570bc155d73e4b27f0b (diff) |
Export modules
Diffstat (limited to 'modules/graphics/default.nix')
-rw-r--r-- | modules/graphics/default.nix | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/graphics/default.nix b/modules/graphics/default.nix deleted file mode 100644 index e2b7a86..0000000 --- a/modules/graphics/default.nix +++ /dev/null @@ -1,36 +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.my.modules.graphics; -in -{ - options.my.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 - ]; - }; -} |