Use Stow on generic distros also
This commit is contained in:
parent
66502988ef
commit
161c11c23a
5 changed files with 25 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, nur, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
programs.firefox = {
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue