From c46cc11567a994969b3469c28ad3bbb603175378 Mon Sep 17 00:00:00 2001 From: hive Date: Thu, 29 Jun 2023 19:21:24 +0000 Subject: [PATCH] added uranus ( personal will be moved to seperate repo later ) --- hosts/uranus/default.nix | 21 +++++++++++++ hosts/uranus/hardware-configuration.nix | 40 +++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 hosts/uranus/default.nix create mode 100644 hosts/uranus/hardware-configuration.nix diff --git a/hosts/uranus/default.nix b/hosts/uranus/default.nix new file mode 100644 index 0000000..6df61f7 --- /dev/null +++ b/hosts/uranus/default.nix @@ -0,0 +1,21 @@ +{ ... }: +{ + imports = [ + ./hardware-configuration.nix + ]; + + programs.steam.enable = true; + programs.gamemode = { + enable = true; + settings = { + general = { + renice = 10; + }; + # Warning: GPU optimisations have the potential to damage hardware + gpu = { + apply_gpu_optimisations = "accept-responsibility"; + gpu_device = 0; + }; + }; + }; +} diff --git a/hosts/uranus/hardware-configuration.nix b/hosts/uranus/hardware-configuration.nix new file mode 100644 index 0000000..cf1d9c3 --- /dev/null +++ b/hosts/uranus/hardware-configuration.nix @@ -0,0 +1,40 @@ +# 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, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" "wl" ]; + boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/bdad9443-41e0-4a8f-b5b3-a93f51dc3a2a"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-1e816279-2666-41a6-bcb9-f97c2f7b3102".device = "/dev/disk/by-uuid/1e816279-2666-41a6-bcb9-f97c2f7b3102"; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/993B-1245"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp8s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20u3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}