forked from jan-leila/nix-config
feat: added impermanence for more applications
This commit is contained in:
parent
dd165d48fe
commit
ebf7ea3cf7
6 changed files with 93 additions and 24 deletions
|
|
@ -8,9 +8,21 @@
|
|||
enable = lib.mkEnableOption "enable openrgb";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.openrgb.enable {
|
||||
home.packages = with pkgs; [
|
||||
openrgb
|
||||
];
|
||||
};
|
||||
config = lib.mkIf config.programs.openrgb.enable (lib.mkMerge [
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
openrgb
|
||||
];
|
||||
}
|
||||
(
|
||||
lib.mkIf config.impermanence.enable {
|
||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||
directories = [
|
||||
"${config.xdg.configHome}/OpenRGB"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
}
|
||||
)
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue