2020-02-07 03:52:17 +04: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.
|
2020-08-06 23:34:37 +04:00
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
|
|
|
|
{
|
2021-02-07 02:38:11 +03:00
|
|
|
|
imports = [ ];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
2021-02-07 02:38:11 +03:00
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "xhci_pci" "ahci" "sd_mod" "sr_mod" ];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
2021-02-07 02:38:11 +03:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2020-09-08 03:07:50 +04:00
|
|
|
|
{ device = "rpool/system/root";
|
|
|
|
|
fsType = "zfs";
|
2020-02-07 03:52:17 +04:00
|
|
|
|
};
|
|
|
|
|
|
2020-09-08 03:07:50 +04:00
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "rpool/local/nix";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var" =
|
|
|
|
|
{ device = "rpool/system/var";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "rpool/user/home";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2021-02-07 02:38:11 +03:00
|
|
|
|
fileSystems."/home/alukard/.libvirt" =
|
|
|
|
|
{ device = "rpool/local/libvirt";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
2020-09-08 03:07:50 +04:00
|
|
|
|
fileSystems."/bittorrent" =
|
|
|
|
|
{ device = "rpool/local/bittorrent";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2020-08-06 23:34:37 +04:00
|
|
|
|
|
2020-02-07 03:52:17 +04:00
|
|
|
|
fileSystems."/boot" =
|
2021-02-07 02:38:11 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/9D49-7087";
|
2020-02-07 03:52:17 +04:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2020-08-06 23:34:37 +04:00
|
|
|
|
swapDevices = [
|
|
|
|
|
{
|
2021-02-07 02:38:11 +03:00
|
|
|
|
device = "/dev/disk/by-partuuid/6e22eab7-2e47-4108-bd97-76e3bdc2c6c1";
|
2020-08-06 23:34:37 +04:00
|
|
|
|
randomEncryption.enable = true;
|
|
|
|
|
}
|
|
|
|
|
];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
2021-02-07 02:38:11 +03:00
|
|
|
|
virtualisation.virtualbox.guest.enable = true;
|
|
|
|
|
networking.hostId = "524df2e8";
|
|
|
|
|
boot.zfs.devNodes = "/dev/disk/by-partuuid/37beaf62-685a-43b2-95b2-e777a77993e1";
|
2020-09-08 03:07:50 +04:00
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2021-02-07 02:38:11 +03:00
|
|
|
|
boot.kernelParams = [ "zfs.zfs_arc_max=1073741824" ];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
}
|