nixos-config/machines/AMD-Workstation/hardware-configuration.nix

78 lines
2.4 KiB
Nix
Raw Normal View History

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-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
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-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
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-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
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-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
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-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
2021-06-29 22:27:50 +03:00
fsType = "btrfs";
2021-10-24 23:10:30 +03:00
options = [
"subvol=bittorrent" "nodatacow" "ssd"
"uid=${toString config.users.users.alukard.uid}"
"gid=${toString config.users.groups.users.gid}"
];
2020-02-12 02:34:44 +04:00
};
2021-09-15 18:40:13 +03:00
fileSystems."/media/libvirt" =
2021-10-24 23:10:30 +03:00
{ device = "/dev/disk/by-partuuid/07fbbbc3-169c-463c-bd53-28dcedb8634d";
2021-09-15 18:40:13 +03:00
fsType = "btrfs";
2021-10-24 23:10:30 +03:00
options = [
"subvol=libvirt" "nodatacow" "ssd"
"uid=${toString config.users.users.alukard.uid}"
"gid=${toString config.users.groups.users.gid}"
];
2021-09-15 18:40:13 +03:00
};
2020-02-12 02:34:44 +04:00
fileSystems."/boot" =
2021-10-24 23:10:30 +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 = [
{
2021-10-24 23:10:30 +03:00
device = "/dev/disk/by-partuuid/94696da5-f478-485d-8d92-c6f3093d8010";
2021-06-29 22:27:50 +03:00
randomEncryption.enable = true;
}
];
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
2021-10-24 23:10:30 +03:00
networking.hostId = "0a9e92cd";
2021-06-29 22:27:50 +03:00
boot.initrd.supportedFilesystems = [ "btrfs" ];
boot.supportedFilesystems = [ "btrfs" ];
2020-02-12 02:34:44 +04:00
}