refactor(tazjin/home): move persistence config into separate module
Change-Id: I1098e75f8b03dbb1c893fb7c43f0fe9926bb4861 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8876 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
12b979e41b
commit
e28c2885c6
4 changed files with 44 additions and 36 deletions
42
users/tazjin/home/persistence.nix
Normal file
42
users/tazjin/home/persistence.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Persistence configuration for machines with throw-away setups.
|
||||
|
||||
{ depot, pkgs, ... }: # readTree
|
||||
{ config, lib, ... }: # home-manager
|
||||
|
||||
{
|
||||
imports = [ (depot.third_party.sources.impermanence + "/home-manager.nix") ];
|
||||
|
||||
home.persistence."/persist/tazjin/home" = {
|
||||
allowOther = true;
|
||||
|
||||
directories = [
|
||||
".cargo"
|
||||
".config/audacity"
|
||||
".config/chromium"
|
||||
".config/google-chrome"
|
||||
".config/quassel-irc.org"
|
||||
".config/syncthing"
|
||||
".config/unity3d"
|
||||
".electrum"
|
||||
".gnupg"
|
||||
".local/share/audacity"
|
||||
".local/share/direnv"
|
||||
".local/share/fish"
|
||||
".local/share/keyrings"
|
||||
".local/share/zoxide"
|
||||
".mozilla/firefox"
|
||||
".password-store"
|
||||
".rustup"
|
||||
".ssh"
|
||||
".steam"
|
||||
".telega"
|
||||
".thunderbird"
|
||||
"go"
|
||||
"mail"
|
||||
];
|
||||
|
||||
files = [
|
||||
".notmuch-config"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -4,42 +4,6 @@
|
|||
{ config, lib, ... }: # home-manager
|
||||
|
||||
{
|
||||
imports = [ (depot.third_party.sources.impermanence + "/home-manager.nix") ];
|
||||
|
||||
home.persistence."/persist/tazjin/home" = {
|
||||
allowOther = true;
|
||||
|
||||
directories = [
|
||||
".cargo"
|
||||
".config/audacity"
|
||||
".config/chromium"
|
||||
".config/google-chrome"
|
||||
".config/quassel-irc.org"
|
||||
".config/syncthing"
|
||||
".config/unity3d"
|
||||
".electrum"
|
||||
".gnupg"
|
||||
".local/share/audacity"
|
||||
".local/share/direnv"
|
||||
".local/share/fish"
|
||||
".local/share/keyrings"
|
||||
".local/share/zoxide"
|
||||
".mozilla/firefox"
|
||||
".password-store"
|
||||
".rustup"
|
||||
".ssh"
|
||||
".steam"
|
||||
".telega"
|
||||
".thunderbird"
|
||||
"go"
|
||||
"mail"
|
||||
];
|
||||
|
||||
files = [
|
||||
".notmuch-config"
|
||||
];
|
||||
};
|
||||
|
||||
home.activation.screenshots = lib.hm.dag.entryAnywhere ''
|
||||
$DRY_RUN_CMD mkdir -p $HOME/screenshots
|
||||
'';
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
{
|
||||
imports = [
|
||||
depot.users.tazjin.home.shared
|
||||
depot.users.tazjin.home.persistence
|
||||
];
|
||||
|
||||
home.persistence."/persist/tazjin/home" = {
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
{
|
||||
imports = [
|
||||
depot.users.tazjin.home.shared
|
||||
depot.users.tazjin.home.persistence
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue