feat: refactored impermanence to be enableable for users on a system
This commit is contained in:
parent
337f03b4e7
commit
6d5a07e08f
31 changed files with 61 additions and 56 deletions
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
buildProfilePersistence = profile: {
|
||||
|
@ -26,7 +25,7 @@
|
|||
allowOther = true;
|
||||
};
|
||||
in {
|
||||
config = lib.mkIf (config.programs.firefox.enable && osConfig.host.impermanence.enable) {
|
||||
config = lib.mkIf (config.programs.firefox.enable && config.impermanence.enable) {
|
||||
home.persistence."/persist${config.home.homeDirectory}" = lib.mkMerge (
|
||||
(
|
||||
lib.attrsets.mapAttrsToList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue