about summary refs log tree commit diff
path: root/platforms/linux/xorg.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-26 11:07:33 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-26 11:07:33 +0200
commit43f903a3334d0bfd50e9cfa64dd5d95faa739d0d (patch)
tree09b90d6f24eec6c7d1376d08028d5a81a1036fb7 /platforms/linux/xorg.nix
parent9bc4874f0aff1ebc58b28879ee21df44e3a01fc7 (diff)
downloaddots-43f903a3334d0bfd50e9cfa64dd5d95faa739d0d.tar.gz
dots-43f903a3334d0bfd50e9cfa64dd5d95faa739d0d.zip
Add more basic config
Diffstat (limited to 'platforms/linux/xorg.nix')
-rw-r--r--platforms/linux/xorg.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/platforms/linux/xorg.nix b/platforms/linux/xorg.nix
new file mode 100644
index 0000000..c8e9222
--- /dev/null
+++ b/platforms/linux/xorg.nix
@@ -0,0 +1,38 @@
+pkgs:
+{
+  home.packages = with pkgs; [
+    nur.repos.pn.pndwm
+    mpd
+    xcompmgr
+    picom
+    dunst
+    unclutter
+    nur.repos.pn.dockd
+  ];
+
+  xsession = {
+    enable = true;
+    windowManager.command = "dbus-run-session -- dwm";
+    profileExtra = ''
+      # Fix Gnome Apps Slow  Start due to failing services
+      # Add this when you include flatpak in your system
+      dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
+
+      mpd &			# music player daemon-you might prefer it as a service though
+      remaps &		# run the remaps script, switching caps/esc and more; check it for more info
+      setbg &			# set the background with the `setbg` script
+      #xrdb $\{XDG_CONFIG_HOME:-$HOME/.config}/Xresources &	# Uncomment to use Xresources colors/settings on startup
+      picom &
+      dunst &			# dunst for notifications
+      xset r rate 300 50 &	# Speed xrate up
+      unclutter &		# Remove mouse when idle
+      #sxhkd &
+      dockd --daemon &
+      screen-orient &
+      for app in `ls ~/.config/autostart/*.desktop`; do
+        $(grep '^Exec' $app | sed 's/^Exec=//') &
+      done
+    '';
+    scriptPath = ".xinitrc";
+  };
+}