nixos-configs/hosts/mpl/mounts.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

2024-12-27 16:44:03 -06:00
{pkgs, ...}: {
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/secureboot"
"/etc/ssh"
"/etc/secrets"
"/etc/NetworkManager/system-connections"
"/var/log"
"/var/lib"
"/var/db/sudo"
];
files = [
"/etc/machine-id"
];
users.min = {
directories = [
# cli tools
{
directory = ".gnupg";
mode = "0700";
}
{
directory = ".ssh";
mode = "0700";
}
".local/share/direnv"
2025-01-06 13:50:04 -06:00
".local/share/zoxide"
".local/share/nix" # trusted settings
".local/state/wireplumber" # volumes, etc
# apps
".config/vesktop"
".librewolf"
2024-12-27 16:44:03 -06:00
# languages
".cargo"
# generic folders
"Documents"
"Downloads"
"Videos"
"Pictures"
# TODO: "Music" should probably be mounted via NFS
"p"
];
2025-01-06 13:50:04 -06:00
files = [
".zsh_history"
];
2024-12-27 16:44:03 -06:00
};
};
environment.systemPackages = [pkgs.ncdu];
2024-12-30 23:28:20 -06:00
services.btrfs.autoScrub.enable = true;
2024-12-27 16:44:03 -06:00
fileSystems = {
"/".neededForBoot = true;
"/etc/ssh" = {
depends = ["/persist"];
neededForBoot = true;
};
"/persist".neededForBoot = true; # no further config is needed, disko handles the rest
};
}