From 88972aa4a272018890af635d8a611e130151018d Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 21 Oct 2026 21:33:10 +0200 Subject: [PATCH] overhaul repo structure, 2 --- modules/hardware/bluetooth.nix | 15 ------- modules/hardware/nvidia.nix | 18 -------- modules/hosts/nerv/hardware-configuration.nix | 43 ------------------- modules/hosts/nerv/quirks.nix | 8 ---- 4 files changed, 84 deletions(-) delete mode 100644 modules/hardware/bluetooth.nix delete mode 100644 modules/hardware/nvidia.nix delete mode 100644 modules/hosts/nerv/hardware-configuration.nix delete mode 100644 modules/hosts/nerv/quirks.nix diff --git a/modules/hardware/bluetooth.nix b/modules/hardware/bluetooth.nix deleted file mode 100644 index c40074a..0000000 --- a/modules/hardware/bluetooth.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: -{ - flake.nixosModules.bluetooth = { - hardware.bluetooth = { - enable = true; - powerOnBoot = false; - input.General.ClassicBondedOnly = false; - settings = { - General = { - Experimental = true; - }; - }; - }; - }; -} diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix deleted file mode 100644 index 9c23782..0000000 --- a/modules/hardware/nvidia.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: { - flake.nixosModules.nvidia = { config, ... }: { - # Enable OpenGL - hardware.graphics = { - enable = true; - }; - - services.xserver.videoDrivers = [ "nvidia" ]; - hardware.nvidia = { - modesetting.enable = true; - powerManagement.enable = false; - powerManagement.finegrained = false; - open = true; - nvidiaSettings = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - }; -} diff --git a/modules/hosts/nerv/hardware-configuration.nix b/modules/hosts/nerv/hardware-configuration.nix deleted file mode 100644 index f411dac..0000000 --- a/modules/hosts/nerv/hardware-configuration.nix +++ /dev/null @@ -1,43 +0,0 @@ -# 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. -{ lib, config, ... }: - -{ - flake.nixosModules.nerv = { config, ... }: { - - 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/48badf37-8adb-48d0-b861-fbf71cbaddd7"; - fsType = "xfs"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/DC66-ACA6"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" - ]; - }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/3b0e79c9-e3d8-4b58-99b4-63c98309ac85"; } - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - }; - -} diff --git a/modules/hosts/nerv/quirks.nix b/modules/hosts/nerv/quirks.nix deleted file mode 100644 index a53af4e..0000000 --- a/modules/hosts/nerv/quirks.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ ... }: { - flake.nixosModules.nerv_quirks = { config, ... }: { - config = { - networking.hostName = "nerv"; - dualBoot = true; - }; - }; -}