init
This commit is contained in:
parent
c4d9468173
commit
fb51ba8285
4 changed files with 40 additions and 1 deletions
|
@ -22,9 +22,10 @@
|
|||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
fileSystems."/persistent" = {
|
||||
device = "/dev/disk/by-uuid/6fff5dd4-8d7a-43fa-85be-eec74ef2089e";
|
||||
fsType = "ext4";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
|
20
hosts/chunk/impermanence.nix
Normal file
20
hosts/chunk/impermanence.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{...}: {
|
||||
environment.persistence."/persistent" = {
|
||||
enable = true;
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/log"
|
||||
"/opt"
|
||||
"/var/lib"
|
||||
|
||||
"/root/.config/borg" # nonce
|
||||
# used a hack to disable cache
|
||||
# see https://borgbackup.readthedocs.io/en/stable/faq.html#the-borg-cache-eats-way-too-much-disk-space-what-can-i-do
|
||||
"/root/.cache/borg"
|
||||
"/root/.config/sops"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue