Only use impermanence on systems and not standalone
This commit is contained in:
parent
7976a8c9ec
commit
fa656c7592
1 changed files with 4 additions and 0 deletions
|
@ -1,8 +1,12 @@
|
||||||
{ config, lib, impermanence, ... }:
|
{ config, lib, impermanence, ... }:
|
||||||
|
let
|
||||||
|
isStandalone = !(config ? home-manager.users);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [ impermanence.homeManagerModules.impermanence ];
|
imports = [ impermanence.homeManagerModules.impermanence ];
|
||||||
|
|
||||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
enable = isStandalone;
|
||||||
directories = [
|
directories = [
|
||||||
"Keepers"
|
"Keepers"
|
||||||
"Projects"
|
"Projects"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue