vps-arm-2024-12-24-16-36-44
This commit is contained in:
@ -84,7 +84,6 @@
|
||||
tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "both";
|
||||
extraUpFlags = "--advertise-exit-node --login-server=https://headscale.szczepan.ski";
|
||||
};
|
||||
|
||||
borgbackup.jobs.all = rec {
|
||||
|
@ -11,6 +11,7 @@
|
||||
../../configs/common-linux.nix
|
||||
../../configs/docker.nix
|
||||
../../configs/user.nix
|
||||
# ../../configs/borg.nix
|
||||
|
||||
../../configs/services/adguardhome.nix
|
||||
../../configs/services/atuin.nix
|
||||
@ -104,7 +105,7 @@
|
||||
};
|
||||
luks.devices = {
|
||||
root = {
|
||||
device = "/dev/disk/by-uuid/d17f6d8b-aec8-4c48-834d-f88d6308e281";
|
||||
device = "/dev/disk/by-uuid/cad303e1-16d8-4c15-b6c6-1f5bfc498419";
|
||||
preLVM = true;
|
||||
};
|
||||
};
|
||||
@ -133,7 +134,7 @@
|
||||
useDHCP = true;
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2a0a:4cc0:1:124c::1";
|
||||
address = "2a0a:4cc0:c0:30aa::1";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
@ -254,40 +255,42 @@
|
||||
};
|
||||
};
|
||||
|
||||
borgbackup.jobs.home = rec {
|
||||
compression = "auto,zstd";
|
||||
encryption = {
|
||||
mode = "repokey-blake2";
|
||||
passCommand = "cat ${config.sops.secrets.borg-key.path}";
|
||||
};
|
||||
extraCreateArgs = "--stats --verbose --checkpoint-interval=600 --exclude-caches";
|
||||
extraPruneArgs = [
|
||||
"--save-space"
|
||||
"--stats"
|
||||
];
|
||||
extraCompactArgs = [
|
||||
"--cleanup-commits"
|
||||
];
|
||||
environment = {
|
||||
BORG_RSH = "ssh -i /home/alex/.ssh/id_borg_rsa";
|
||||
BORG_BASE_DIR = "/persist/borg";
|
||||
};
|
||||
readWritePaths = ["/persist/borg"];
|
||||
paths = ["/home/alex" "/persist"];
|
||||
repo = "ssh://u278697-sub3@u278697.your-storagebox.de:23/./borg-arm";
|
||||
startAt = "daily";
|
||||
prune.keep = {
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
monthly = 6;
|
||||
};
|
||||
exclude = [
|
||||
"/home/alex/mounted"
|
||||
"/home/alex/.cache"
|
||||
"/persist/borg"
|
||||
];
|
||||
};
|
||||
# borgbackup.jobs.home = rec {
|
||||
# compression = "auto,zstd";
|
||||
# encryption = {
|
||||
# mode = "repokey-blake2";
|
||||
# passCommand = "cat ${config.sops.secrets.borg-key.path}";
|
||||
# };
|
||||
# extraCreateArgs = "--stats --verbose --checkpoint-interval=600 --exclude-caches";
|
||||
# extraPruneArgs = [
|
||||
# "--save-space"
|
||||
# "--stats"
|
||||
# ];
|
||||
# extraCompactArgs = [
|
||||
# "--cleanup-commits"
|
||||
# ];
|
||||
# environment = {
|
||||
# BORG_RSH = "ssh -i /home/alex/.ssh/id_borg_rsa";
|
||||
# BORG_BASE_DIR = "/persist/borg";
|
||||
# };
|
||||
# readWritePaths = ["/persist/borg"];
|
||||
# paths = ["/home/alex" "/persist"];
|
||||
# repo = "ssh://u278697-sub3@u278697.your-storagebox.de:23/./borg-arm";
|
||||
# startAt = "daily";
|
||||
# prune.keep = {
|
||||
# daily = 7;
|
||||
# weekly = 4;
|
||||
# monthly = 6;
|
||||
# };
|
||||
# exclude = [
|
||||
# "/home/alex/mounted"
|
||||
# "/home/alex/.cache"
|
||||
# "/persist/borg"
|
||||
# ];
|
||||
# };
|
||||
|
||||
journald = {extraConfig = "SystemMaxUse=10G";};
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
@ -18,45 +18,45 @@
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/3a21f244-5bf9-4c65-bce7-92c03fb0fd69";
|
||||
device = "/dev/disk/by-uuid/224bc309-572c-4771-b66e-25d5e13c4917";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=root"];
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/3a21f244-5bf9-4c65-bce7-92c03fb0fd69";
|
||||
device = "/dev/disk/by-uuid/224bc309-572c-4771-b66e-25d5e13c4917";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=home"];
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-uuid/3a21f244-5bf9-4c65-bce7-92c03fb0fd69";
|
||||
device = "/dev/disk/by-uuid/224bc309-572c-4771-b66e-25d5e13c4917";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=nix"];
|
||||
};
|
||||
|
||||
fileSystems."/persist" = {
|
||||
device = "/dev/disk/by-uuid/3a21f244-5bf9-4c65-bce7-92c03fb0fd69";
|
||||
device = "/dev/disk/by-uuid/224bc309-572c-4771-b66e-25d5e13c4917";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=persist"];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
fileSystems."/var/log" = {
|
||||
device = "/dev/disk/by-uuid/3a21f244-5bf9-4c65-bce7-92c03fb0fd69";
|
||||
device = "/dev/disk/by-uuid/224bc309-572c-4771-b66e-25d5e13c4917";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=log"];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/438B-D3D2";
|
||||
device = "/dev/disk/by-uuid/DE94-E9C1";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0022" "dmask=0022"];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/4608cfa2-da5b-45b1-97f4-8486957e409b";}
|
||||
{device = "/dev/disk/by-uuid/3c63b075-76ca-403f-bf75-53269b6bf4fa";}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
Reference in New Issue
Block a user