diff options
Diffstat (limited to 'modules/desktop/xserver')
-rw-r--r-- | modules/desktop/xserver/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/desktop/xserver/default.nix b/modules/desktop/xserver/default.nix new file mode 100644 index 0000000..471c9ce --- /dev/null +++ b/modules/desktop/xserver/default.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, user, ... }: +with lib; +let + +in +{ + options = { + xserver = { + enable = mkOption { + type = types.bool; + default = false; + }; + }; + }; + + config = mkIf (config.xserver.enable) + { + services.xserver = { + enable = true; + layout = "us"; + xkbVariant = ""; + }; + + environment.systemPackages = with pkgs; [ + xclip + xorg.xev + xorg.xkill + xorg.xrandr + arandr + ]; + + home-manager.users.${user} = { + xsession = { + enable = true; + numlock.enable = true; + }; + }; + }; +} |