diff options
| author | Fuwn <[email protected]> | 2024-09-22 15:15:46 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-22 15:15:46 -0700 |
| commit | 08d4be5b51bb595e55555cc93c47f7adc77ed1c3 (patch) | |
| tree | b89c6b008116fba278b9fc5238c8a1a0f3efbbec /modules/core/hardware | |
| parent | core: move variables and virtualisation to desktop (diff) | |
| download | nixos-config-08d4be5b51bb595e55555cc93c47f7adc77ed1c3.tar.xz nixos-config-08d4be5b51bb595e55555cc93c47f7adc77ed1c3.zip | |
core: move harware and software to desktop
Diffstat (limited to 'modules/core/hardware')
| -rw-r--r-- | modules/core/hardware/bluetooth.nix | 19 | ||||
| -rw-r--r-- | modules/core/hardware/cpu.nix | 21 | ||||
| -rw-r--r-- | modules/core/hardware/default.nix | 14 | ||||
| -rw-r--r-- | modules/core/hardware/tpm.nix | 18 | ||||
| -rw-r--r-- | modules/core/hardware/usb.nix | 10 | ||||
| -rw-r--r-- | modules/core/hardware/yubikey.nix | 18 |
6 files changed, 0 insertions, 100 deletions
diff --git a/modules/core/hardware/bluetooth.nix b/modules/core/hardware/bluetooth.nix deleted file mode 100644 index 9737504..0000000 --- a/modules/core/hardware/bluetooth.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs, ... }: -{ - boot.kernelParams = [ "btusb" ]; - services.blueman.enable = true; - - hardware.bluetooth = { - enable = true; - powerOnBoot = true; - package = pkgs.bluez5-experimental; - disabledPlugins = [ "sap" ]; - # hsphfpd.enable = true; - - settings.General = { - JustWorksRepairing = "always"; - MultiProfile = "multiple"; - Experimental = true; - }; - }; -} diff --git a/modules/core/hardware/cpu.nix b/modules/core/hardware/cpu.nix deleted file mode 100644 index 1ac3a27..0000000 --- a/modules/core/hardware/cpu.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ pkgs, config, ... }: -{ - environment.systemPackages = [ pkgs.amdctl ]; - - powerManagement = { - enable = true; - cpuFreqGovernor = "performance"; - }; - - boot = { - kernelModules = [ - # "kvm-amd" - "amd-pstate" - "zenpower" - "msr" - ]; - - kernelParams = [ "amd_iommu=on" ]; - extraModulePackages = [ config.boot.kernelPackages.zenpower ]; - }; -} diff --git a/modules/core/hardware/default.nix b/modules/core/hardware/default.nix deleted file mode 100644 index 167e7c7..0000000 --- a/modules/core/hardware/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ - imports = [ - ./cpu.nix - ./bluetooth.nix - ./usb.nix - ./tpm.nix - ./yubikey.nix - ]; - - hardware = { - enableRedistributableFirmware = true; - enableAllFirmware = true; - }; -} diff --git a/modules/core/hardware/tpm.nix b/modules/core/hardware/tpm.nix deleted file mode 100644 index b84551e..0000000 --- a/modules/core/hardware/tpm.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: -{ - security.tpm2 = { - enable = true; - applyUdevRules = true; - abrmd.enable = true; - tctiEnvironment.enable = true; - pkcs11.enable = true; - }; - - environment.systemPackages = with pkgs; [ - tpm2-tools - tpm2-tss - tpm2-abrmd - ]; - - boot.kernelModules = [ "uhid" ]; -} diff --git a/modules/core/hardware/usb.nix b/modules/core/hardware/usb.nix deleted file mode 100644 index f697761..0000000 --- a/modules/core/hardware/usb.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ pkgs, ... }: -{ - environment.systemPackages = with pkgs; [ - usbutils - lm_sensors - pciutils - ]; - - boot.kernelParams = [ "usbcore.autosuspend=-1" ]; -} diff --git a/modules/core/hardware/yubikey.nix b/modules/core/hardware/yubikey.nix deleted file mode 100644 index 6bd4a5c..0000000 --- a/modules/core/hardware/yubikey.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: -{ - hardware.gpgSmartcards.enable = true; - - services = { - pcscd.enable = true; - udev.packages = [ pkgs.yubikey-personalization ]; - }; - - environment.systemPackages = with pkgs; [ - yubikey-manager - yubikey-manager-qt - yubikey-personalization - yubikey-personalization-gui - yubico-piv-tool - yubioath-flutter - ]; -} |