Use Stow on generic distros also

This commit is contained in:
Bun 2025-05-14 01:09:16 -04:00
parent 66502988ef
commit 161c11c23a
5 changed files with 25 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, nur, ... }:
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.home.desktop.enable {
programs.firefox = {

View file

@ -3,7 +3,6 @@
imports = [ impermanence.homeManagerModules.default ];
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = {
enable = !config.targets.genericLinux.enable;
allowOther = false;
removePrefixDirectory = true;
directories = [

View file

@ -11,8 +11,8 @@
templates = null;
extraConfig = {
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${config.home.homeDirectory}" else "${config.home.homeDirectory}/.stow";
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
XDG_PERSIST_DIR = "/persist${config.home.homeDirectory}";
};
};
}