summaryrefslogtreecommitdiff
path: root/x
diff options
context:
space:
mode:
authormediocregopher <mediocregopher@gmail.com>2023-12-27 18:37:54 +0100
committermediocregopher <mediocregopher@gmail.com>2023-12-27 18:39:51 +0100
commit005334a0371227be6e35e7afd85ab64475ddcf77 (patch)
tree6886248a9c4e2bf3f2882ff80c7b96e3fb2567eb /x
parentd09d899d292be4e57453577e4674c00554d346ef (diff)
Merge X subdir into awesome
Diffstat (limited to 'x')
-rw-r--r--x/default.nix43
-rw-r--r--x/xorg.conf6
2 files changed, 0 insertions, 49 deletions
diff --git a/x/default.nix b/x/default.nix
deleted file mode 100644
index a060701..0000000
--- a/x/default.nix
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- config,
-}: rec {
-
- pkgs = (import ../pkgs.nix).stable {};
-
- innerEnv = pkgs.buildEnv {
- name = "x-inner-env";
- paths = [
- pkgs.xorg.xorgserver
- pkgs.xorg.xinit
- pkgs.xorg.xauth
- pkgs.xorg.xset
- pkgs.xorg.xf86inputlibinput
-
- (pkgs.runCommand "xorg-conf-inner" {} ''
- mkdir -p "$out"/share/X11/xorg.conf.d/
- cp ${./xorg.conf} "$out"/share/X11/xorg.conf.d/99-loadout.conf
- '')
- ];
- };
-
- conf = pkgs.runCommand "xorg-conf" {} ''
- cat >>"$out" <<EOF
-Section "Files"
- ModulePath "${innerEnv}/lib/xorg/modules"
-EndSection
-
-${config.xorgConfExtra}
-EOF
-
- for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do
- cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out"
- done
-
- '';
-
- startx = pkgs.writeShellScriptBin "startx" ''
- export XORGCONFIG=${conf}
- export PATH=${innerEnv}/bin:$PATH
- exec startx
- '';
-}
diff --git a/x/xorg.conf b/x/xorg.conf
deleted file mode 100644
index 04f72e6..0000000
--- a/x/xorg.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-Section "InputClass"
- Identifier "system-keyboard"
- MatchIsKeyboard "on"
- Option "XkbLayout" "us"
- Option "XkbOptions" "caps:swapescape"
-EndSection