From 350f03b0894b5d78a18d243ecd9201d518c92e90 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 13 Feb 2024 15:42:23 -0700 Subject: [PATCH] Make new config for vetra and lean it back a bit --- hosts/aarch64/vetra/bk-config.nix | 94 +++++++++++++++++++++++++++ hosts/aarch64/vetra/configuration.nix | 6 -- 2 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 hosts/aarch64/vetra/bk-config.nix diff --git a/hosts/aarch64/vetra/bk-config.nix b/hosts/aarch64/vetra/bk-config.nix new file mode 100644 index 0000000..fc8f66b --- /dev/null +++ b/hosts/aarch64/vetra/bk-config.nix @@ -0,0 +1,94 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ +# ./gnome.nix + ]; + + boot = { + kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; + initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ]; + + loader = { + + grub.enable = false; + + generic-extlinux-compatible.enable = true; + + }; + }; + +# boot.kernelPackages = pkgs.linuxPackages_latest; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + fileSystems = { + "/" = { + device = "/dev/disk/by-label/NIXOS_SD"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + }; + + networking = { + hostName = "vetra"; + networkmanager.enable = true; + }; + + # Set your time zone. + time.timeZone = "America/Denver"; + + environment.systemPackages = + with pkgs; + [ + git + neofetch + restic + wget + ]; + + # Define user accounts + users.users.aaronh = { + description = "Aaron Honeycutt"; + home = "/home/aaronh"; + extraGroups = [ "wheel" "networkmanager" "adm"]; + isNormalUser = true; + hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx."; + }; + + # Enable Pipewire + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + + # Turn off PulseAudio + hardware.pulseaudio.enable = false; + + # Enable Bluetooth + hardware.bluetooth.enable = true; + + # Enable SSH + services.openssh.enable = true; + + # Enable CUPS + services.printing.enable = true; + + # Allow Unfree + nixpkgs.config.allowUnfree = true; + + services.hydra = { + enable = false; + hydraURL = "http://localhost:3000"; + notificationSender = "hydra@localhost"; + buildMachinesFiles = []; + useSubstitutes = true; + }; + + # System + system.stateVersion = "24.05"; + system.autoUpgrade.enable = true; +} diff --git a/hosts/aarch64/vetra/configuration.nix b/hosts/aarch64/vetra/configuration.nix index fc8f66b..b196e56 100644 --- a/hosts/aarch64/vetra/configuration.nix +++ b/hosts/aarch64/vetra/configuration.nix @@ -10,16 +10,11 @@ initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ]; loader = { - grub.enable = false; - generic-extlinux-compatible.enable = true; - }; }; -# boot.kernelPackages = pkgs.linuxPackages_latest; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; fileSystems = { @@ -42,7 +37,6 @@ with pkgs; [ git - neofetch restic wget ];