refactor(jade): install wallpaper to system and separate xinitrc sections
- Install gruvbox wallpaper to /run/current-system/sw/share/backgrounds/jade/ - Split xinitrc into "Personal Configuration" and "jade Desktop Environment" - Move wallpaper into jade/assets/ for flake extraction readiness This makes jade fully repo-independent - the wallpaper is now part of jade's system packages rather than referencing the nix-config repo. When extracted as a flake, jade will be completely self-contained.
This commit is contained in:
parent
0e7f2ada72
commit
c0aecc7f02
3 changed files with 26 additions and 9 deletions
BIN
nixos/common/users/sajenim/jade/assets/chinatown.png
Normal file
BIN
nixos/common/users/sajenim/jade/assets/chinatown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 MiB |
|
|
@ -22,6 +22,15 @@
|
||||||
pkgs.unstable.gruvbox-material-gtk-theme
|
pkgs.unstable.gruvbox-material-gtk-theme
|
||||||
# Install our XMonad and Xmobar configuration
|
# Install our XMonad and Xmobar configuration
|
||||||
inputs.xmonad-config.packages.${pkgs.stdenv.hostPlatform.system}.default
|
inputs.xmonad-config.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
# Install jade wallpapers
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "jade-wallpapers";
|
||||||
|
src = "${inputs.self}/nixos/common/users/sajenim/jade/assets";
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/backgrounds/jade
|
||||||
|
cp -r $src/* $out/share/backgrounds/jade/
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set default terminal for the desktop environment
|
# Set default terminal for the desktop environment
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,30 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Setup monitors (machine-specific - consider making configurable)
|
#
|
||||||
|
# Personal Configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
# Setup monitors
|
||||||
xrandr --output HDMI-A-0 --mode 1920x1080 \
|
xrandr --output HDMI-A-0 --mode 1920x1080 \
|
||||||
--output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
|
--output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
|
||||||
|
|
||||||
# Apply wallpaper
|
|
||||||
feh --bg-center ~/.repositories/personal/nix-config/assets/chinatown.png
|
|
||||||
|
|
||||||
# Disable screen saver and DPMS features
|
|
||||||
xset s off -dpms
|
|
||||||
|
|
||||||
# Fix for pinentry bug on NixOS
|
# Fix for pinentry bug on NixOS
|
||||||
gpgconf --reload gpg-agent
|
gpgconf --reload gpg-agent
|
||||||
|
|
||||||
# Import X display into systemd user environment
|
#
|
||||||
|
# jade Desktop Environment
|
||||||
|
#
|
||||||
|
|
||||||
|
# Apply gruvbox-themed wallpaper
|
||||||
|
feh --bg-center /run/current-system/sw/share/backgrounds/jade/chinatown.png
|
||||||
|
|
||||||
|
# Disable screen saver and DPMS features
|
||||||
|
xset s off -dpms
|
||||||
|
|
||||||
|
# Import X display into systemd user environment for portal backends
|
||||||
systemctl --user import-environment DISPLAY XAUTHORITY
|
systemctl --user import-environment DISPLAY XAUTHORITY
|
||||||
|
|
||||||
# Start XDG desktop portal backend
|
# Start XDG desktop portal backend for GTK apps (file pickers, etc.)
|
||||||
systemctl --user restart xdg-desktop-portal-gtk.service
|
systemctl --user restart xdg-desktop-portal-gtk.service
|
||||||
|
|
||||||
# Launch window manager
|
# Launch window manager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue