From d3bc36ef59fd6f3126ebfba9ce8cbd7aaeed98bf Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 16 Mar 2026 18:32:11 -0700 Subject: [PATCH] Start vade. --- flake.nix | 1 + hw/vade/default.nix | 9 +++++++ hw/vade/hardware-configuration.nix | 41 ++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 hw/vade/default.nix create mode 100644 hw/vade/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 1a5d04e..bcd987a 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ "orion" "rift" "sk" + "vade" ] (hostName: lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; diff --git a/hw/vade/default.nix b/hw/vade/default.nix new file mode 100644 index 0000000..d68b465 --- /dev/null +++ b/hw/vade/default.nix @@ -0,0 +1,9 @@ +{ inputs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ../../configs/desktop.nix + ../../configs/qemu.nix + ]; +} diff --git a/hw/vade/hardware-configuration.nix b/hw/vade/hardware-configuration.nix new file mode 100644 index 0000000..36dccd2 --- /dev/null +++ b/hw/vade/hardware-configuration.nix @@ -0,0 +1,41 @@ +# 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 = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a646409d-193c-47b7-a38c-33e08f1bf3ae"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-41752b4f-4f27-4459-9087-8a8ba57e8e65".device = "/dev/disk/by-uuid/41752b4f-4f27-4459-9087-8a8ba57e8e65"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/A3CB-584F"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}