refactor: move ~/ fs definitions into hosts/common/home, not users/
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./fs.nix
|
||||||
./keyring
|
./keyring
|
||||||
./mime.nix
|
./mime.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
34
hosts/common/home/fs.nix
Normal file
34
hosts/common/home/fs.nix
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
sane.user.persist.byStore.plaintext = [
|
||||||
|
"archive"
|
||||||
|
"dev"
|
||||||
|
# TODO: records should be private
|
||||||
|
"records"
|
||||||
|
"ref"
|
||||||
|
"tmp"
|
||||||
|
"use"
|
||||||
|
"Books"
|
||||||
|
"Music"
|
||||||
|
"Pictures"
|
||||||
|
"Videos"
|
||||||
|
|
||||||
|
# these are persisted simply to save on RAM.
|
||||||
|
# ~/.cache/nix can become several GB.
|
||||||
|
# mesa_shader_cache is < 10 MB.
|
||||||
|
# TODO: integrate with sane.programs.sandbox?
|
||||||
|
".cache/mesa_shader_cache"
|
||||||
|
".cache/nix"
|
||||||
|
];
|
||||||
|
sane.user.persist.byStore.private = [
|
||||||
|
"knowledge"
|
||||||
|
];
|
||||||
|
|
||||||
|
# convenience
|
||||||
|
sane.user.fs."private".symlink.target = "/mnt/persist/private";
|
||||||
|
sane.user.fs."nixos".symlink.target = "dev/nixos";
|
||||||
|
sane.user.fs."Books/servo".symlink.target = "/mnt/servo/media/Books";
|
||||||
|
sane.user.fs."Videos/servo".symlink.target = "/mnt/servo/media/Videos";
|
||||||
|
# sane.user.fs."Music/servo".symlink.target = "/mnt/servo/media/Music";
|
||||||
|
sane.user.fs."Pictures/servo-macros".symlink.target = "/mnt/servo/media/Pictures/macros";
|
||||||
|
}
|
@@ -110,44 +110,5 @@
|
|||||||
# }
|
# }
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
sane.users.colin = {
|
sane.users.colin.default = true;
|
||||||
default = true;
|
|
||||||
|
|
||||||
persist.byStore.plaintext = [
|
|
||||||
"archive"
|
|
||||||
"dev"
|
|
||||||
# TODO: records should be private
|
|
||||||
"records"
|
|
||||||
"ref"
|
|
||||||
"tmp"
|
|
||||||
"use"
|
|
||||||
"Books"
|
|
||||||
"Music"
|
|
||||||
"Pictures"
|
|
||||||
"Videos"
|
|
||||||
|
|
||||||
# these are persisted simply to save on RAM.
|
|
||||||
# ~/.cache/nix can become several GB.
|
|
||||||
# mesa_shader_cache is < 10 MB.
|
|
||||||
# TODO: integrate with sane.programs.sandbox?
|
|
||||||
".cache/mesa_shader_cache"
|
|
||||||
".cache/nix"
|
|
||||||
|
|
||||||
# ".cargo"
|
|
||||||
# ".rustup"
|
|
||||||
];
|
|
||||||
persist.byStore.private = [
|
|
||||||
"knowledge";
|
|
||||||
];
|
|
||||||
|
|
||||||
# fs.".cargo".symlink.target = "/tmp/colin-cargo";
|
|
||||||
|
|
||||||
# convenience
|
|
||||||
fs."private".symlink.target = "/mnt/persist/private";
|
|
||||||
fs."nixos".symlink.target = "dev/nixos";
|
|
||||||
fs."Books/servo".symlink.target = "/mnt/servo/media/Books";
|
|
||||||
fs."Videos/servo".symlink.target = "/mnt/servo/media/Videos";
|
|
||||||
# fs."Music/servo".symlink.target = "/mnt/servo/media/Music";
|
|
||||||
fs."Pictures/servo-macros".symlink.target = "/mnt/servo/media/Pictures/macros";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user