Initial commit
This commit is contained in:
153
hosts/fenixpc/hardware-configuration.nix
Normal file
153
hosts/fenixpc/hardware-configuration.nix
Normal file
@@ -0,0 +1,153 @@
|
||||
{ ... }:
|
||||
{
|
||||
swappiness = 10;
|
||||
|
||||
boot = {
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
resumeDevice = "/dev/disk/by-uuid/56ad966f-3268-4b59-999a-48a082bb8052";
|
||||
|
||||
initrd = {
|
||||
verbose = true;
|
||||
systemd = {
|
||||
emergencyAccess = "$y$j9T$yu1NICt8J9IFQ3wmgViop1$8rCHUrMNN2dCQeSt8f4h73Wrw5oUKoojuhetYyV7yN";
|
||||
enable = true;
|
||||
};
|
||||
|
||||
availableKernelModules = [
|
||||
"thunderbolt"
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
];
|
||||
|
||||
kernelModules = [
|
||||
"kvm-amd"
|
||||
"amdgpu"
|
||||
];
|
||||
};
|
||||
|
||||
kernelModules = [
|
||||
"kvm-amd"
|
||||
"amdgpu"
|
||||
"i2c-dev"
|
||||
];
|
||||
|
||||
kernelParams = [
|
||||
"usbcore.autosuspend=-1"
|
||||
"quiet"
|
||||
"modeset"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/71AB-29E0";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=/root"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=/home"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/nix" = {
|
||||
device = "/dev/disk/by-uuid/57df3204-a8c7-4842-957c-9752f996bc0f";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"subvol=/nix"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/mnt/steamapps" = {
|
||||
device = "LABEL=garage";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=steam"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/home/fenix/Downloads" = {
|
||||
device = "LABEL=hddstorage";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=downloads"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/home/fenix/Photos" = {
|
||||
device = "LABEL=hddstorage";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=photo"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/home/fenix/Music" = {
|
||||
device = "LABEL=hddstorage";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=music"
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/mnt/hdd" = {
|
||||
device = "LABEL=hddstorage";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/home/fenix/Videos" = {
|
||||
device = "nas.fxnet:/mnt/raid/video";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"rw"
|
||||
"soft"
|
||||
"noauto"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
"/mnt/nas/torrents" = {
|
||||
device = "nas.fxnet:/mnt/raid/torrents";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"rw"
|
||||
"soft"
|
||||
"noauto"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/dev/disk/by-uuid/56ad966f-3268-4b59-999a-48a082bb8052";
|
||||
priority = 100;
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user