From 0a1e60f7a25c8e3192296e41b879da7d6e92de6c Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sun, 23 Oct 2022 23:17:12 -0500 Subject: [PATCH] ace | first commit --- ace/configuration.nix | 11 ++++++++++ ace/hardware-configuration.nix | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 ace/configuration.nix create mode 100644 ace/hardware-configuration.nix diff --git a/ace/configuration.nix b/ace/configuration.nix new file mode 100644 index 0000000..1d58db8 --- /dev/null +++ b/ace/configuration.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + /etc/nixos/hardware-configuration.nix + /home/don/nixos/workstation/configuration.nix + /home/don/nixos/workstation/sway.nix + ]; + networking.hostName = "ace"; +} diff --git a/ace/hardware-configuration.nix b/ace/hardware-configuration.nix new file mode 100644 index 0000000..2e76296 --- /dev/null +++ b/ace/hardware-configuration.nix @@ -0,0 +1,38 @@ +# 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" "ahci" "uas" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/31c01307-0e0b-4f01-8c0e-04bd70698a28"; + fsType = "ext4"; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/7714-A10A"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/8c445831-23e0-4508-85d0-54ea8cd3f80b"; } + ]; + + # 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.wlp1s0.useDHCP = lib.mkDefault true; + + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}