From e1fcf4fac685b91ed7272479c0e9e670687deb92 Mon Sep 17 00:00:00 2001 From: Christian Soltermann Date: Wed, 8 Apr 2026 15:27:10 +0000 Subject: Preparing desktop install --- hosts/desktop/configuration.nix | 18 ++++++++++++++++-- hosts/desktop/hardware-configuration.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 hosts/desktop/hardware-configuration.nix (limited to 'hosts/desktop') diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 2c598f7..cf4c360 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -7,9 +7,23 @@ ../../modules/common.nix ]; - networking.hostName = "desktop"; + boot.loader.grub = { + enable = true; + device = "nodev"; + efiSupport = true; + }; + boot.loader.efi.canTouchEfiVariables = false; + boot.loader.efi.efiSysMountPoint = "/boot/efi"; - programs.firefox.enable = true; + networking.hostName = "desktop"; + networking.wireless.iwd.enable = true; + networking.wireless.iwd.settings = { + General.EnableNetworkConfiguration = true; + }; + networking.nameservers = [ + "1.1.1.1" + "8.8.8.8" + ]; system.stateVersion = "25.11"; } diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix new file mode 100644 index 0000000..7ddea07 --- /dev/null +++ b/hosts/desktop/hardware-configuration.nix @@ -0,0 +1,31 @@ +# 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. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + 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/e09483ea-5fb4-472d-99ba-3d4dc9560400"; + fsType = "btrfs"; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/B29A-4911"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3