refactor: persist
This commit is contained in:
@@ -22,10 +22,17 @@
|
||||
nixosDirs = [
|
||||
"/root"
|
||||
"/var"
|
||||
"/etc/ssh"
|
||||
];
|
||||
nixosFiles = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
homeDirs = [
|
||||
{
|
||||
directory = ".ssh";
|
||||
mode = "0700";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,20 +12,11 @@
|
||||
"workspace"
|
||||
"Virt"
|
||||
|
||||
{
|
||||
directory = ".ssh";
|
||||
mode = "0700";
|
||||
}
|
||||
".local/state"
|
||||
".local/share"
|
||||
".local/share/nvim"
|
||||
".cache"
|
||||
|
||||
".ollama"
|
||||
];
|
||||
nixosDirs = [
|
||||
"/etc/ssh"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -154,8 +154,6 @@
|
||||
".android"
|
||||
"Android"
|
||||
|
||||
".ssh"
|
||||
|
||||
"bin"
|
||||
"workspace"
|
||||
"Virt"
|
||||
@@ -163,13 +161,9 @@
|
||||
".cache"
|
||||
".local/state"
|
||||
".local/share/Anki2"
|
||||
".local/share/nvim"
|
||||
".local/share/shotwell"
|
||||
".local/share/Steam"
|
||||
".local/share/SteamOS"
|
||||
".local/share/cheat.sh"
|
||||
".local/share/Kingsoft"
|
||||
".local/share/oss.krtirtho.spotube"
|
||||
|
||||
".local/share/AyuGramDesktop"
|
||||
".local/share/TelegramDesktop"
|
||||
@@ -182,21 +176,10 @@
|
||||
".config/dconf"
|
||||
".config/gh"
|
||||
".config/pulse"
|
||||
".config/go-musicfox/db"
|
||||
".config/pip"
|
||||
".config/obs-studio"
|
||||
".config/libreoffice"
|
||||
".config/Moonlight Game Streaming Project"
|
||||
".config/sunshine"
|
||||
];
|
||||
nixosDirs = [
|
||||
"/etc/ssh"
|
||||
];
|
||||
homeFiles = [
|
||||
".config/mpd/mpd.db" # requires bindfs
|
||||
".config/go-musicfox/cookie"
|
||||
".hmcl.json"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,13 @@ lib.my.makeSwitch {
|
||||
};
|
||||
|
||||
cli.media.mpd.enable = true;
|
||||
|
||||
persist.homeDirs = [
|
||||
".config/go-musicfox/db"
|
||||
];
|
||||
persist.homeFiles = [
|
||||
".config/go-musicfox/cookie"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,5 +21,8 @@ lib.my.makeSwitch {
|
||||
services.mpris-proxy.enable = true;
|
||||
xdg.configFile."mpd/mpd.conf".source = ./mpd.conf;
|
||||
};
|
||||
my.persist.homeFiles = [
|
||||
".config/mpd/mpd.db"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,5 +54,8 @@ lib.my.makeHomeProgramConfig {
|
||||
];
|
||||
};
|
||||
};
|
||||
my.persist.homeDirs = [
|
||||
".local/share/nvim"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,5 +23,8 @@ lib.my.makeSwitch {
|
||||
".minecraft"
|
||||
".local/share/hmcl"
|
||||
];
|
||||
my.persist.homeFiles = [
|
||||
".hmcl.json"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20,5 +20,8 @@ lib.my.makeSwitch {
|
||||
gamescope
|
||||
];
|
||||
};
|
||||
my.persist.homeDirs = [
|
||||
".local/share/Steam"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,4 +13,9 @@ lib.my.makeHomePackageConfig {
|
||||
"media"
|
||||
"spotube"
|
||||
];
|
||||
extraConfig = {
|
||||
my.persist.homeDirs = [
|
||||
".local/share/oss.krtirtho.spotube"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,5 +21,8 @@ lib.my.makeSwitch {
|
||||
];
|
||||
})
|
||||
];
|
||||
my.persist.homeDirs = [
|
||||
".config/obs-studio"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,6 +32,11 @@ in
|
||||
"virt"
|
||||
"moonlight"
|
||||
];
|
||||
extraConfig = {
|
||||
my.persist.homeDirs = [
|
||||
".config/Moonlight Game Streaming Project"
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user