Personal Nix setup

Fix latest generation (remove outdated XDG configs)

Changed files
+1 -44
home
base
machines
pepper
modules
apps
desktop
+1 -1
home/base/xdg.nix
···
];
};
-
home.sessionVariables = {
+
home.sessionVariables = mkIf helpers.isDarwin {
XDG_RUNTIME_DIR = optionalString (config.xdg.runtimeDir != null) config.xdg.runtimeDir;
};
};
-1
machines/pepper/home.nix
···
enable = true;
discord.enable = true;
firefox.enable = true;
-
obsidian.enable = true;
minecraft.enable = true;
ghostty.enable = true;
};
-24
modules/apps/games.nix
···
with lib;
let
cfg = config.modules.apps;
-
-
gamescope = pkgs.gamescope.overrideAttrs (old: {
-
version = "3.16.1-f873ec7";
-
patches = [];
-
src = pkgs.fetchFromGitHub {
-
owner = "ValveSoftware";
-
repo = "gamescope";
-
rev = "f873ec7868fe84d2850e91148bcbd6d6b19a7443";
-
fetchSubmodules = true;
-
hash = "sha256-ItP9VE4IMgnIPDeDQag+gVZMuoRO0uI6gF2tC4WVObE=";
-
};
-
buildInputs = old.buildInputs ++ [ pkgs.luajit ];
-
# See: https://github.com/ValveSoftware/gamescope/pull/1494
-
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" "-fno-omit-frame-pointer" ];
-
patchPhase = ''
-
substituteInPlace ./src/reshade_effect_manager.cpp \
-
--replace-fail "\"/usr\"" "\"$out\""
-
substituteInPlace ./src/Utils/Process.cpp \
-
--replace-fail "\"gamescopereaper\"" "\"$out/bin/gamescopereaper\""
-
patchShebangs ./default_scripts_install.sh
-
patchShebangs ./subprojects/libdisplay-info/tool/gen-search-table.py
-
'';
-
});
in {
options.modules.apps.games = {
enable = mkOption {
···
gamemode.enable = true;
gamescope = {
enable = true;
-
package = gamescope;
env = {
PROTON_ENABLE_AMD_AGS = "1";
ENABLE_HDR_WSI = "1";
-18
modules/desktop/xdg.nix
···
systemd.user.sessionVariables = {
"NIXOS_OZONE_WL" = lib.mkDefault "1";
"MOZ_ENABLE_WAYLAND" = lib.mkDefault "1";
-
"QT_WAYLAND_DISABLE_WINDOWDECORATIONS" = lib.mkDefault "1";
-
"QT_WAYLAND_FORCE_DPI" = lib.mkDefault "physical";
-
"QT_QPA_PLATFORM" = lib.mkDefault "wayland-egl";
-
};
-
-
xdg = {
-
mimeApps = {
-
enable = true;
-
};
-
userDirs = {
-
enable = true;
-
createDirectories = true;
-
};
-
systemDirs.data = [
-
"/usr/share"
-
"/var/lib/flatpak/exports/share"
-
"$HOME/.local/share/flatpak/exports/share"
-
];
};
};
};