summaryrefslogtreecommitdiff
path: root/modules/core/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/hardware')
-rw-r--r--modules/core/hardware/bluetooth.nix19
-rw-r--r--modules/core/hardware/cpu.nix21
-rw-r--r--modules/core/hardware/default.nix14
-rw-r--r--modules/core/hardware/tpm.nix18
-rw-r--r--modules/core/hardware/usb.nix10
-rw-r--r--modules/core/hardware/yubikey.nix18
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
- ];
-}