From 43f903a3334d0bfd50e9cfa64dd5d95faa739d0d Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 26 Sep 2020 11:07:33 +0200 Subject: Add more basic config --- platforms/linux/default.nix | 13 +++++++++++++ platforms/linux/gtk.nix | 28 ++++++++++++++++++++++++++++ platforms/linux/user-dirs.nix | 13 +++++++++++++ platforms/linux/xorg.nix | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 platforms/linux/default.nix create mode 100644 platforms/linux/gtk.nix create mode 100644 platforms/linux/user-dirs.nix create mode 100644 platforms/linux/xorg.nix (limited to 'platforms/linux') diff --git a/platforms/linux/default.nix b/platforms/linux/default.nix new file mode 100644 index 0000000..281f8c2 --- /dev/null +++ b/platforms/linux/default.nix @@ -0,0 +1,13 @@ +{ + imports = [ + ./user-dirs.nix + ./gtk.nix + ./xorg.nix + ]; + + home.packages = [ + spotify + discord + python37Packages.pywal + ]; +} diff --git a/platforms/linux/gtk.nix b/platforms/linux/gtk.nix new file mode 100644 index 0000000..c16725b --- /dev/null +++ b/platforms/linux/gtk.nix @@ -0,0 +1,28 @@ +pkgs: +{ + home.packages = with pkgs; [ + capitaine-cursors + papirus-icon-theme + hicolor-icon-theme + ]; + + gtk = { + enable = true; + theme.name = "gruvbox-dark-hard"; + iconTheme.name = "Papirus"; + font.name = "Noto Sans 10"; + gtk3.extraConfig = { + gtk-cursor-theme-name = "capitaine-cursors"; + gtk-application-prefer-dark-theme=true; + }; + gtk3.extraCss = '' + window decoration { + margin: 0; + border: none; + } + ''; + gtk2.extraConfig = '' + gtk-cursor-theme-name="capitaine-cursors" + ''; + }; +} diff --git a/platforms/linux/user-dirs.nix b/platforms/linux/user-dirs.nix new file mode 100644 index 0000000..4b2390a --- /dev/null +++ b/platforms/linux/user-dirs.nix @@ -0,0 +1,13 @@ +{ + xdg.userDirs = { + enable = true; + desktop = "$HOME/"; + documents = "$HOME/docs"; + download = "$HOME/down"; + publicShare = "$HOME/public"; + music = "$HOME/music"; + pictures = "$HOME/pics"; + videos = "$HOME/vids"; + templates = "$HOME/"; + }; +} 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"; + }; +} -- cgit 1.4.1