feat: Impermanence (home)
This commit is contained in:
@@ -17,10 +17,27 @@
|
||||
sydnix = {
|
||||
sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/user-files/${config.home.username}/key.txt";
|
||||
secrets = {
|
||||
example-user-key = {};
|
||||
};
|
||||
};
|
||||
|
||||
impermanence = {
|
||||
enable = true;
|
||||
directories = [
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Documents"
|
||||
"Videos"
|
||||
".ssh"
|
||||
{
|
||||
directory = ".local/share/Steam";
|
||||
method = "symlink";
|
||||
}
|
||||
".passage"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
|
||||
@@ -4,21 +4,4 @@ let mutableSymlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
in {
|
||||
home.file."org".source =
|
||||
mutableSymlink "~/Dropbox/org";
|
||||
|
||||
# HACK: This all ought to be subsumed by Impermanence.
|
||||
|
||||
home.file."Documents".source =
|
||||
mutableSymlink "/persist/home/crumb/Documents";
|
||||
|
||||
home.file."Pictures".source =
|
||||
mutableSymlink "/persist/home/crumb/Pictures";
|
||||
|
||||
home.file."src".source =
|
||||
mutableSymlink "/persist/home/crumb/src";
|
||||
|
||||
home.file."Music".source =
|
||||
mutableSymlink "/persist/home/crumb/Music";
|
||||
|
||||
home.file."Videos".source =
|
||||
mutableSymlink "/persist/home/crumb/Videos";
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
let mutableSymlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
in {
|
||||
home.packages = [ pkgs.passage ];
|
||||
|
||||
home.file.".passage/identities".source =
|
||||
(config.lib.file.mkOutOfStoreSymlink config.sydnix.sops.keyFile);
|
||||
home.file.".passage/store".source =
|
||||
(config.lib.file.mkOutOfStoreSymlink "/persist/home/crumb/.passage/store");
|
||||
mutableSymlink config.sydnix.sops.keyFile;
|
||||
|
||||
sydnix.impermanence.directories = [
|
||||
".passage/store"
|
||||
];
|
||||
|
||||
home.shellAliases."pass" = "${pkgs.passage/bin/passage}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user