nixos-config/machines/NixOS-VM/hardware-configuration.nix

61 lines
1.9 KiB
Nix
Raw Normal View History

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-06-16 05:30:04 +03:00
boot.initrd.availableKernelModules = [ "ata_piix" "xhci_pci" "ahci" "nvme" "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."/" =
2021-06-16 05:30:04 +03:00
{ device = "/dev/disk/by-uuid/95b3583e-41d8-4a34-9ff5-52a7546b9baa";
fsType = "btrfs";
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-02-07 03:52:17 +04:00
};
2020-09-08 03:07:50 +04:00
fileSystems."/nix" =
2021-06-16 05:30:04 +03:00
{ device = "/dev/disk/by-uuid/95b3583e-41d8-4a34-9ff5-52a7546b9baa";
fsType = "btrfs";
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-09-08 03:07:50 +04:00
};
fileSystems."/home" =
2021-06-16 05:30:04 +03:00
{ device = "/dev/disk/by-uuid/95b3583e-41d8-4a34-9ff5-52a7546b9baa";
fsType = "btrfs";
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-09-08 03:07:50 +04:00
};
2021-06-16 05:30:04 +03:00
fileSystems."/var" =
{ device = "/dev/disk/by-uuid/95b3583e-41d8-4a34-9ff5-52a7546b9baa";
fsType = "btrfs";
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2021-02-07 02:38:11 +03:00
};
2021-06-16 05:30:04 +03:00
fileSystems."/media/bittorrent" =
{ device = "/dev/disk/by-uuid/95b3583e-41d8-4a34-9ff5-52a7546b9baa";
fsType = "btrfs";
options = [ "subvol=bittorrent" "nodatacow" "ssd" ];
2020-09-08 03:07:50 +04:00
};
2020-08-06 23:34:37 +04:00
2020-02-07 03:52:17 +04:00
fileSystems."/boot" =
2021-06-16 05:30:04 +03:00
{ device = "/dev/disk/by-uuid/CA29-07D6";
2020-02-07 03:52:17 +04:00
fsType = "vfat";
};
2020-08-06 23:34:37 +04:00
swapDevices = [
{
2021-06-16 05:30:04 +03:00
device = "/dev/disk/by-partuuid/1bba72d3-9a12-4407-87ab-f2640dbbadf5";
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;
2021-06-16 05:30:04 +03:00
networking.hostId = "c4ab8679";
boot.initrd.supportedFilesystems = [ "btrfs" ];
boot.supportedFilesystems = [ "btrfs" ];
2020-02-07 03:52:17 +04:00
}