Add some useful envvars

Change grim directory to ~/Pictures/Grim/
This commit is contained in:
Evie Litherland-Smith 2023-12-11 11:16:33 +00:00
parent b866c582ac
commit 533ea7ada8
2 changed files with 8 additions and 2 deletions

View file

@ -18,7 +18,7 @@ in ''
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM,wayland
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = MOZ_ENABLE_WAYLAND,1 env = MOZ_ENABLE_WAYLAND,1
env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Screenshots env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Grim
exec-once = hyprctl setcursor ${cursorName} ${cursorSize} exec-once = hyprctl setcursor ${cursorName} ${cursorSize}
exec-once = dbus-update-activation-environment --systemd --all exec-once = dbus-update-activation-environment --systemd --all

View file

@ -5,7 +5,13 @@
nixpkgs.config.chromium.commandLineArgs = nixpkgs.config.chromium.commandLineArgs =
"--enable-features=UseOzonePlatform --ozone-platform=wayland"; "--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = { environment = {
sessionVariables.NIXOS_OZONE_WL = "1"; sessionVariables = {
NIXOS_OZONE_WL = "1";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
};
systemPackages = with pkgs; [ systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent libsForQt5.polkit-kde-agent
xdg-utils xdg-utils