enable auto scrubbing and stuff
This commit is contained in:
@@ -73,7 +73,12 @@ in
|
||||
# Override kernel to latest
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
kernelParams = [ "quiet" ];
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
# needed cause ssd powersaving is broken af I guess
|
||||
"nvme_core.default_ps_max_latency_us=0"
|
||||
"pcie_aspm=off"
|
||||
];
|
||||
|
||||
consoleLogLevel = 3;
|
||||
bootspec.enable = true;
|
||||
@@ -136,12 +141,12 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
rsync-home = {
|
||||
path = [ pkgs.bash pkgs.rsync ];
|
||||
script = ''
|
||||
rsync -rtpogv --progress --ignore-existing --exclude={'/home/matt/Games/*', '/home/matt/1TB/*'} -lHzs /home/matt /media/nas/backup/desktop-nix/home
|
||||
'';
|
||||
};
|
||||
# rsync-home = {
|
||||
# path = [ pkgs.bash pkgs.rsync ];
|
||||
# script = ''
|
||||
# rsync -rtpogv --progress --ignore-existing --exclude={'/home/matt/Games/*', '/home/matt/1TB/*'} -lHzs /home/matt /media/nas/backup/desktop-nix/home
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
|
||||
# Networking configs
|
||||
@@ -179,6 +184,7 @@ in
|
||||
kmod
|
||||
lact
|
||||
nano
|
||||
onlyoffice-bin
|
||||
os-prober
|
||||
papirus-icon-theme
|
||||
pciutils
|
||||
@@ -215,17 +221,19 @@ in
|
||||
};
|
||||
|
||||
services = {
|
||||
# borgbackup.jobs.home-matt = {
|
||||
# paths = "/home/matt";
|
||||
# encryption.mode = "none";
|
||||
# # environment.BORG_RSH = "ssh -i /home/matt/.ssh/id_ed25519";
|
||||
# repo = "/media/nas/backup/desktop-nix/home";
|
||||
# compression = "auto,zstd";
|
||||
# exclude = [
|
||||
# "/home/matt/Games"
|
||||
# "/home/matt/1TB"
|
||||
# ];
|
||||
# };
|
||||
borgbackup.jobs.home-matt = {
|
||||
encryption.mode = "repokey";
|
||||
encryption.passCommand = "cat /root/borg";
|
||||
environment.BORG_RSH = "ssh -i /home/matt/.ssh/id_ed25519";
|
||||
repo = "/media/nas/backup/desktop-nix/borg/home";
|
||||
compression = "auto,zstd";
|
||||
inhibitsSleep = true;
|
||||
paths = "/home/matt";
|
||||
exclude = [
|
||||
"/home/matt/Games"
|
||||
"/home/matt/1TB"
|
||||
];
|
||||
};
|
||||
|
||||
btrfs = {
|
||||
autoScrub.enable = true;
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"subvol=nix"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
"autodefrag"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -52,6 +53,7 @@
|
||||
"subvol=etc"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
"autodefrag"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -62,6 +64,7 @@
|
||||
"subvol=root"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
"autodefrag"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -72,6 +75,7 @@
|
||||
"subvol=log"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
"autodefrag"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -81,6 +85,7 @@
|
||||
options = [
|
||||
"subvol=home"
|
||||
"compress=zstd"
|
||||
"autodefrag"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user