2018-03-31 22:16:38 +02:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
|
|
|
|
];
|
|
|
|
|
|
2018-06-18 20:07:12 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
2018-03-31 22:16:38 +02:00
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2018-08-02 11:19:49 +02:00
|
|
|
|
{ device = "/dev/disk/by-uuid/fec13566-5528-4859-b185-ce37ac2665eb";
|
2018-04-05 19:05:33 +02:00
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-18 20:07:12 +02:00
|
|
|
|
fileSystems."/boot" =
|
2018-08-02 11:19:49 +02:00
|
|
|
|
{ device = "/dev/disk/by-uuid/5306-AD9A";
|
2018-06-18 20:07:12 +02:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/lib/acme" =
|
|
|
|
|
{ device = "loutrepool/var/acme";
|
2018-04-01 11:28:01 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-21 10:52:21 +02:00
|
|
|
|
fileSystems."/var/certs" =
|
|
|
|
|
{ device = "loutrepool/var/certs";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/lib/transmission" =
|
|
|
|
|
{ device = "loutrepool/var/transmission";
|
2018-04-01 11:28:01 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/lib/matrix-synapse" =
|
|
|
|
|
{ device = "loutrepool/var/matrix-synapse";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var/lib/radarr" =
|
|
|
|
|
{ device = "loutrepool/var/radarr";
|
2018-04-03 08:47:49 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var/lib/grafana" =
|
|
|
|
|
{ device = "loutrepool/var/grafana";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/lib/slimserver" =
|
|
|
|
|
{ device = "loutrepool/var/slimserver";
|
2018-04-03 08:47:49 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-12 19:46:20 +02:00
|
|
|
|
fileSystems."/var/db/influxdb" =
|
|
|
|
|
{ device = "loutrepool/var/influxdb";
|
2018-04-03 08:47:49 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/lib/postgresql" =
|
|
|
|
|
{ device = "loutrepool/var/postgresql";
|
2018-04-12 19:46:20 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var/lib/syncthing" =
|
|
|
|
|
{ device = "loutrepool/var/syncthing";
|
2018-04-03 23:09:51 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2018-04-03 22:24:26 +02:00
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/mnt/medias" =
|
|
|
|
|
{ device = "loutrepool/medias";
|
2018-04-03 23:22:44 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/sieve" =
|
|
|
|
|
{ device = "loutrepool/var/sieve";
|
2018-04-12 19:46:20 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/vmail" =
|
|
|
|
|
{ device = "loutrepool/var/vmail";
|
2018-04-04 00:09:14 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-22 00:00:44 +02:00
|
|
|
|
fileSystems."/var/lib/sonarr" =
|
|
|
|
|
{ device = "loutrepool/var/sonarr";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-05 19:37:02 +02:00
|
|
|
|
fileSystems."/var/lib/jackett" =
|
|
|
|
|
{ device = "loutrepool/var/jackett";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var/lib/gitea" =
|
|
|
|
|
{ device = "loutrepool/var/gitea";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-12-23 01:10:28 +01:00
|
|
|
|
fileSystems."/var/lib/private/sdtdserver" =
|
|
|
|
|
{ device = "loutrepool/var/sdtdserver";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2019-05-01 23:07:04 +02:00
|
|
|
|
fileSystems."/var/lib/private/factorio" =
|
2019-01-03 10:04:35 +01:00
|
|
|
|
{ device = "loutrepool/var/factorio";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/var/dkim" =
|
|
|
|
|
{ device = "loutrepool/var/dkim";
|
2018-04-22 11:43:22 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-08-02 11:34:17 +02:00
|
|
|
|
fileSystems."/var/vsftpd" =
|
|
|
|
|
{ device = "loutrepool/var/vsftpd";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-27 18:41:47 +02:00
|
|
|
|
fileSystems."/mnt/backup" =
|
|
|
|
|
{ device = "backup";
|
2018-04-22 11:43:22 +02:00
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-18 18:49:59 +02:00
|
|
|
|
fileSystems."/mnt/backup_loutre" =
|
|
|
|
|
{ device = "loutrepool/backup";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-08-02 11:36:24 +02:00
|
|
|
|
fileSystems."/mnt/secrets" =
|
|
|
|
|
{ device = "loutrepool/secrets";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2019-10-22 00:34:08 +02:00
|
|
|
|
fileSystems."/var/lib/minecraft" =
|
|
|
|
|
{ device = "loutrepool/var/minecraft";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2019-11-02 13:53:53 +01:00
|
|
|
|
fileSystems."/var/www" =
|
|
|
|
|
{ device = "loutrepool/var/www";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2020-04-08 12:49:45 +02:00
|
|
|
|
fileSystems."/var/lib/mastodon" =
|
|
|
|
|
{ device = "loutrepool/var/mastodon";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-22 11:42:44 +02:00
|
|
|
|
swapDevices =
|
2018-06-03 20:56:09 +02:00
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
device = "/var/swapfile";
|
|
|
|
|
size = 8096;
|
|
|
|
|
}
|
2018-04-22 11:42:44 +02:00
|
|
|
|
];
|
2018-03-31 22:16:38 +02:00
|
|
|
|
|
|
|
|
|
nix.maxJobs = lib.mkDefault 4;
|
2018-04-01 11:28:01 +02:00
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
2018-03-31 22:16:38 +02:00
|
|
|
|
}
|