summaryrefslogtreecommitdiff
path: root/hosts/shinji/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/shinji/default.nix')
-rw-r--r--hosts/shinji/default.nix50
1 files changed, 1 insertions, 49 deletions
diff --git a/hosts/shinji/default.nix b/hosts/shinji/default.nix
index 7dc0dea..e6d7b4b 100644
--- a/hosts/shinji/default.nix
+++ b/hosts/shinji/default.nix
@@ -17,6 +17,7 @@ inputs.nixpkgs.lib.nixosSystem rec {
{
# imports
imports = [
+ ./hardware.nix
./sops.nix
./wireguard.nix
];
@@ -35,55 +36,6 @@ inputs.nixpkgs.lib.nixosSystem rec {
services.logind.extraConfig = ''
HandlePowerKey=suspend
'';
-
- # hardware
- hardware.graphics.enable = true;
- hardware.bluetooth.enable = true;
- security.tpm2.enable = false;
-
- # bootloader
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi = {
- canTouchEfiVariables = true;
- efiSysMountPoint = "/boot/efi";
- };
-
- # kernel modules
- boot.initrd.availableKernelModules = [
- "nvme"
- "xhci_pci"
- "thunderbolt"
- "usb_storage"
- "sd_mod"
- ];
- boot.initrd.kernelModules = [];
- boot.kernelModules = ["kvm-amd"];
- boot.extraModulePackages = [];
-
- # firmware
- hardware.enableRedistributableFirmware = true;
- hardware.cpu.amd.updateMicrocode = true;
-
- # luks device
- boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/ad489bfa-4280-44ea-8ad2-60347b516d60";
-
- # root
- fileSystems."/" = {
- device = "/dev/disk/by-uuid/b43a7cf6-b9aa-44c2-ad29-da24ffa56901";
- fsType = "btrfs";
- };
-
- # boot
- fileSystems."/boot/efi" = {
- device = "/dev/disk/by-uuid/6F93-6A0B";
- fsType = "vfat";
- options = ["fmask=0022" "dmask=0022"];
- };
-
- # swap
- swapDevices = [
- {device = "/dev/disk/by-uuid/57caa02d-8569-43e3-8bf9-09dd6f02b191";}
- ];
}
];
}