2020-02-12 02:34:44 +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.
|
2021-06-29 22:27:50 +03:00
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
2020-02-12 02:34:44 +04:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
2021-06-29 22:27:50 +03:00
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2021-09-15 18:40:13 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fsType = "btrfs";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
};
|
|
|
|
|
|
2021-06-29 22:27:50 +03:00
|
|
|
|
fileSystems."/nix" =
|
2021-09-15 18:40:13 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fsType = "btrfs";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2021-09-15 18:40:13 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fsType = "btrfs";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
};
|
|
|
|
|
|
2021-06-29 22:27:50 +03:00
|
|
|
|
fileSystems."/var" =
|
2021-09-15 18:40:13 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fsType = "btrfs";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/media/bittorrent" =
|
2021-09-15 18:40:13 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=bittorrent" "nodatacow" "ssd" ];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
};
|
|
|
|
|
|
2021-09-15 18:40:13 +03:00
|
|
|
|
fileSystems."/media/libvirt" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/be70ce11-d42d-4b5b-ba03-32ffd8e1491f";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=libvirt" "nodatacow" "ssd" ];
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fileSystems."/boot" =
|
2021-06-29 22:27:50 +03:00
|
|
|
|
{ device = "/dev/disk/by-uuid/948B-11EC";
|
2020-02-12 02:34:44 +04:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2021-06-29 22:27:50 +03:00
|
|
|
|
swapDevices = [
|
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-partuuid/417966a4-f0f1-4cf4-8954-f30007268a09";
|
|
|
|
|
randomEncryption.enable = true;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# high-resolution display
|
|
|
|
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
2021-09-15 18:40:13 +03:00
|
|
|
|
networking.hostId = "a517ac4a";
|
2021-06-29 22:27:50 +03:00
|
|
|
|
boot.initrd.supportedFilesystems = [ "btrfs" ];
|
|
|
|
|
boot.supportedFilesystems = [ "btrfs" ];
|
2020-02-12 02:34:44 +04:00
|
|
|
|
}
|