boot.kernelPackages = pkgs.linuxPackages_latest;
myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; };
+ fileSystems = {
+ "/" = lib.mkForce { fsType = "zfs"; device = "zpool/root"; };
+ "/boot" = { fsType = "ext4"; device = "/dev/disk/by-uuid/fd1c511e-2bc0-49d5-b8bb-95e7e8c8c816"; };
+ "/etc" = { fsType = "zfs"; device = "zpool/root/etc"; };
+ "/home" = { fsType = "zfs"; device = "zpool/root/home"; };
+ "/home/immae" = { fsType = "zfs"; device = "zpool/root/home/immae"; };
+ "/tmp" = { fsType = "zfs"; device = "zpool/root/tmp"; };
+ "/var" = { fsType = "zfs"; device = "zpool/root/var"; };
+ };
+ boot.initrd.secrets = {
+ "/boot/pass.key" = "/boot/pass.key";
+ };
+
networking = {
hostId = "27c3048d"; # generated with head -c4 /dev/urandom | od -A none -t x4
firewall.enable = false;
install -m 0755 -o root -g root -d /var/lib/caldance
'';
virtualisation.docker.enable = true;
+ virtualisation.docker.storageDriver = "zfs";
virtualisation.libvirtd.enable = true;
users.extraUsers.immae.extraGroups = [ "libvirtd" "docker" ];
systemd.services.libvirtd.postStart = ''
fsType = "fuse";
options = [ "force-user=pub" "create-for-user=wwwrun" "create-for-group=wwwrun" ];
};
- environment.systemPackages = [ pkgs.bindfs pkgs.pv pkgs.smartmontools ];
+ environment.systemPackages = [ pkgs.bindfs ];
# This value determines the NixOS release with which your system is
# to be compatible, in order to avoid breaking some software such as