From 988005d5d57768a9cf934697e9dd8fd417c66db7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 28 Nov 2025 13:10:56 -0800 Subject: add a profile for wireguard configuration --- profiles/hardware/do-droplet.nix | 5 ++++- profiles/hardware/framework-desktop.nix | 4 +++- profiles/hardware/synology-vm.nix | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'profiles/hardware') diff --git a/profiles/hardware/do-droplet.nix b/profiles/hardware/do-droplet.nix index aef5805..28d025a 100644 --- a/profiles/hardware/do-droplet.nix +++ b/profiles/hardware/do-droplet.nix @@ -1,10 +1,13 @@ { modulesPath, lib, ... }: { - imports = [ (modulesPath + "/virtualisation/digital-ocean-config.nix") ]; + # fixes duplicated devices in mirroredBoots + boot.loader.grub.devices = lib.mkForce [ "/dev/vda" ]; + disko.devices.disk.disk1.device = "/dev/vda"; + # do not use DHCP, as DigitalOcean provisions IPs using cloud-init networking.useDHCP = lib.mkForce false; diff --git a/profiles/hardware/framework-desktop.nix b/profiles/hardware/framework-desktop.nix index 85580d1..b1019b8 100644 --- a/profiles/hardware/framework-desktop.nix +++ b/profiles/hardware/framework-desktop.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ lib, inputs, ... }: { imports = [ inputs.nixos-hardware.nixosModules.framework-desktop-amd-ai-max-300-series @@ -27,4 +27,6 @@ hardware.enableRedistributableFirmware = true; hardware.cpu.amd.updateMicrocode = true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/profiles/hardware/synology-vm.nix b/profiles/hardware/synology-vm.nix index 7d784eb..053cf41 100644 --- a/profiles/hardware/synology-vm.nix +++ b/profiles/hardware/synology-vm.nix @@ -4,6 +4,9 @@ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.enable = true; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" -- cgit v1.2.3