tweak: hades host config
This commit is contained in:
parent
1c372febba
commit
19cdb75fb4
2 changed files with 21 additions and 8 deletions
|
|
@ -38,19 +38,21 @@
|
||||||
input-remapper
|
input-remapper
|
||||||
razergenie
|
razergenie
|
||||||
openrazer-daemon
|
openrazer-daemon
|
||||||
openrgb-with-all-plugins
|
openrgb-with-all-pluginsi
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# amd radeon gpu drivers and software
|
# amd radeon gpu drivers and software
|
||||||
# https://nixos.wiki/wiki/AMD_GPU
|
# https://nixos.wiki/wiki/AMD_GPU
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
# load amdgpu driver pre boot
|
# load amdgpu driver pre boot
|
||||||
initrd.kernelModules = [ "amdgpu" ];
|
initrd.kernelModules = [ "amdgpu" ];
|
||||||
#exposes gpu driver
|
#exposes gpu driver
|
||||||
kernelModules = [ "amdgpu" ];
|
kernelModules = [
|
||||||
|
"amdgpu"
|
||||||
|
"kvm-amd"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
# discrete graphics support
|
# discrete graphics support
|
||||||
graphics.enable = true;
|
graphics.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,16 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
# important i think lol
|
# important i think lol
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
# bootloader
|
# bootloader
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
# shrug
|
# shrug
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
|
"ehci_pci"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"ahci"
|
"ahci"
|
||||||
"nvme"
|
"nvme"
|
||||||
|
|
@ -32,15 +35,19 @@
|
||||||
# enable amdgpu at boot
|
# enable amdgpu at boot
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
|
||||||
|
# luks device mapping
|
||||||
|
boot.initrd.luks.devices."luks-35440a88-293e-455b-a018-ee1086b07321".device =
|
||||||
|
"/dev/disk/by-uuid/35440a88-293e-455b-a018-ee1086b07321"
|
||||||
|
|
||||||
# root partition
|
# root partition
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/2f4a231c-04a1-4bb9-9370-c207573be881";
|
device = "/dev/mapper/luks-35440a88-293e-455b-a018-ee1086b07321";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
# boot partition
|
# boot partition
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/7D2E-5F33";
|
device = "/dev/disk/by-uuid/2C83-7F40";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [
|
||||||
"fmask=0077"
|
"fmask=0077"
|
||||||
|
|
@ -49,7 +56,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# swap
|
# swap
|
||||||
swapDevices = [ ];
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/dev/mapper/luks-55f7d546-fac9-4ea0-a21e-4c50ecc0d67d"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# specifies x64 uArch
|
# specifies x64 uArch
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue