zfs auto expand, scrub, and trim
This commit is contained in:
parent
c2004c61c7
commit
d3d9e0fd1a
1 changed files with 20 additions and 11 deletions
|
@ -1,6 +1,9 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [ ./resources/prune-backup.nix ];
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [./resources/prune-backup.nix];
|
||||
|
||||
networking.hostId = "cdab8473";
|
||||
networking.hostName = "varda"; # Define your hostname.
|
||||
|
@ -30,17 +33,15 @@
|
|||
device = "//u370253-sub2.your-storagebox.de/u370253-sub2";
|
||||
fsType = "cifs";
|
||||
|
||||
options =
|
||||
let
|
||||
options = let
|
||||
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,vers=3";
|
||||
in
|
||||
[
|
||||
in [
|
||||
"${automount_opts},credentials=${config.sops.secrets.sambaCredentials.path},uid=994,gid=993" # evaluated and deployed from another machine
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
swapDevices = [];
|
||||
|
||||
# sops
|
||||
sops = {
|
||||
|
@ -51,10 +52,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
zfs = {
|
||||
expandOnBoot = "all";
|
||||
autoScrub.enable = true;
|
||||
trim.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# System settings and services.
|
||||
mySystem = {
|
||||
purpose = "Production";
|
||||
system.motd.networkInterfaces = [ "enp1s0" ];
|
||||
system.motd.networkInterfaces = ["enp1s0"];
|
||||
security.acme.enable = true;
|
||||
services = {
|
||||
forgejo = {
|
||||
|
|
Loading…
Add table
Reference in a new issue