From 4b20513a86b466224bd0decfc5ff312f57127e82 Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 19 Dec 2021 17:16:19 +0100 Subject: [PATCH] desktop config --- hardware/desktop.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 hardware/desktop.nix diff --git a/hardware/desktop.nix b/hardware/desktop.nix new file mode 100644 index 0000000..4672412 --- /dev/null +++ b/hardware/desktop.nix @@ -0,0 +1,44 @@ +# 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. +{ config, lib, pkgs, modulesPath, ... }: + +let + unstable = import { config.allowUnfree = true; }; +in { + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "tank/root/nixos"; + fsType = "zfs"; + }; + + fileSystems."/home" = + { device = "tank/root/home"; + fsType = "zfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/587C-36F9"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # custom + boot.extraModprobeConfig = '' + options snd_usb_audio device_setup=1 + ''; + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.enable = true; + networking.hostId = "ef3a5d57"; + networking.hostName = "home"; + hardware.opengl.enable = true; +}