summaryrefslogtreecommitdiff
path: root/hosts/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/desktop')
-rw-r--r--hosts/desktop/configuration.nix18
-rw-r--r--hosts/desktop/hardware-configuration.nix31
2 files changed, 47 insertions, 2 deletions
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;
+}