From b3423e8472e4742bc3a82862e5c3d3eba5acb597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 2 Mar 2024 14:59:57 +0100 Subject: [PATCH] Add gunter stuff --- home/hyprland/hyprland.nix | 2 +- hosts/gunter/hardware-configuration.nix | 42 +++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 hosts/gunter/hardware-configuration.nix diff --git a/home/hyprland/hyprland.nix b/home/hyprland/hyprland.nix index 8181441..21178c7 100644 --- a/home/hyprland/hyprland.nix +++ b/home/hyprland/hyprland.nix @@ -9,7 +9,7 @@ "$mainMod" = "SUPER"; "$term" = "alacritty"; - monitor = [ "eDP-1,1920x1080@60,0x0,1" ]; + # monitor = [ "eDP-1,1920x1080@60,0x0,1" ]; input = { kb_layout = "no"; follow_mouse = 1; diff --git a/hosts/gunter/hardware-configuration.nix b/hosts/gunter/hardware-configuration.nix new file mode 100644 index 0000000..b3320dc --- /dev/null +++ b/hosts/gunter/hardware-configuration.nix @@ -0,0 +1,42 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a7d4b697-fffa-4bcb-9dd7-cbbd6121a50c"; + fsType = "xfs"; + }; + + boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/be82b184-3cc7-483b-9069-f7797f51c853"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/DC0C-AAB3"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/2284e9c6-c168-4d4f-ba6a-d270f1ae245d"; } + ]; + + # 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.enp12s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp13s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}