diff --git a/flake.nix b/flake.nix index 9bf4c74..c126d2d 100644 --- a/flake.nix +++ b/flake.nix @@ -101,7 +101,10 @@ # Asahi MacBook Air M2 cider = mkNixos [ ./nixos/hosts/cider ]; - + + # Main Desktop + aerial = mkNixos [ ./nixos/hosts/aerial ]; + # 2015 MBP #echo = mkNixos [ ./nixos/hosts/echo ]; diff --git a/home-manager/noe/hosts/aerial.nix b/home-manager/noe/hosts/aerial.nix new file mode 100644 index 0000000..ba1e28c --- /dev/null +++ b/home-manager/noe/hosts/aerial.nix @@ -0,0 +1,9 @@ +{ ... }: { + imports = [ + ../common + ../common/home-user.nix + + ../../features/kitty.nix + ../../features/vesktop + ]; +} diff --git a/nixos/hosts/aerial/default.nix b/nixos/hosts/aerial/default.nix new file mode 100644 index 0000000..2d3385a --- /dev/null +++ b/nixos/hosts/aerial/default.nix @@ -0,0 +1,15 @@ +{...}: { + imports = [ + ./hardware-configuration.nix + ../../client.nix + + ../../features/xfce.nix + ../../features/tailscale.nix + ../../features/sound + ]; + + home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix; + + networking.hostName = "aerial"; + system.stateVersion = "24.05"; +} diff --git a/nixos/hosts/aerial/hardware-configuration.nix b/nixos/hosts/aerial/hardware-configuration.nix new file mode 100644 index 0000000..b514bd6 --- /dev/null +++ b/nixos/hosts/aerial/hardware-configuration.nix @@ -0,0 +1,40 @@ +# 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" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a7e2046c-f3ce-4ea0-86d1-89118b0e08a6"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/EE80-F63E"; + fsType = "vfat"; + }; + + 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.enp5s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp6s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp7s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}