summaryrefslogtreecommitdiffstats
path: root/modules/desktop/xserver
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-09-29 14:22:24 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-09-29 14:22:24 -0400
commitf819e30b03dffcf9e74af4b8552e4a8ab8f54c58 (patch)
treec05f4f1db738d6cd9d2824b5000c6afc3b1d61d1 /modules/desktop/xserver
parentd3bb6cbb4724bc8f18f72fa3fea3e65f73ae8d09 (diff)
downloadnix-config-f819e30b03dffcf9e74af4b8552e4a8ab8f54c58.tar.gz
nix-config-f819e30b03dffcf9e74af4b8552e4a8ab8f54c58.tar.bz2
nix-config-f819e30b03dffcf9e74af4b8552e4a8ab8f54c58.zip
major reorganizing to seperate modules
Diffstat (limited to 'modules/desktop/xserver')
-rw-r--r--modules/desktop/xserver/default.nix39
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;
+ };
+ };
+ };
+}