diff --git a/configuration.nix b/configuration.nix index 5481611..c03a963 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,105 +1,105 @@ { config, pkgs, ... }: { - # Import other configuration modules - # (hardware-configuration.nix is autogenerated upon installation) - # paths in nix expressions are always relative the file which defines them - imports = - [ - ./hardware-configuration.nix - ./programs.nix - ]; + # Import other configuration modules + # (hardware-configuration.nix is autogenerated upon installation) + # paths in nix expressions are always relative the file which defines them + imports = + [ + ./hardware-configuration.nix + ./programs.nix + ]; - boot.loader = { - systemd-boot.enable = true; - }; + boot.loader = { + systemd-boot.enable = true; + }; - boot.initrd.luks.devices = { - crypt-root = { - device = "/dev/disk/by-label/luks"; - preLVM = true; + boot.initrd.luks.devices = { + crypt-root = { + device = "/dev/disk/by-label/luks"; + preLVM = true; + }; + }; + + # Name your host machine + # networking.hostName = "NixOS"; + networking.networkmanager.enable = true; + + # Set your time zone. + time.timeZone = "America/Denver"; + + # Enter keyboard layout + services.xserver.layout = "us"; + + # Enable Flatpak + xdg = { + portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-wlr + xdg-desktop-portal-kde + ]; }; - }; + }; - # Name your host machine - networking.hostName = "NixOS"; - networking.networkmanager.enable = true; + services.flatpak.enable = true; - # Set your time zone. - time.timeZone = "America/Denver"; + # Enable fwupd + services.fwupd.enable = true; - # Enter keyboard layout - services.xserver.layout = "us"; - - # Enable Flatpak - xdg = { - portal = { - enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-wlr - xdg-desktop-portal-kde - ]; - }; - }; - - services.flatpak.enable = true; - - # Enable fwupd - services.fwupd.enable = true; - - # Define user accounts - users.extraUsers.aaronh = { - description = "Aaron Honeycutt"; - home = "/home/aaronh"; - extraGroups = [ "wheel" "networkmanager" "adm"]; - isNormalUser = true; - hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx."; - }; + # Define user accounts + users.extraUsers.aaronh = { + description = "Aaron Honeycutt"; + home = "/home/aaronh"; + extraGroups = [ "wheel" "networkmanager" "adm"]; + isNormalUser = true; + hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx."; + }; - # Allow Unfree - nixpkgs.config.allowUnfree = true; + # Allow Unfree + nixpkgs.config.allowUnfree = true; - # Enable 32 Bit libraries for applications like Steam - hardware.opengl.driSupport32Bit = true; + # Enable 32 Bit libraries for applications like Steam + hardware.opengl.driSupport32Bit = true; - # Install some packages - environment.systemPackages = - with pkgs; - [ - firefox - fish - flatpak - git - steam - thunderbird - restic - wget - ]; + # Install some packages + environment.systemPackages = + with pkgs; + [ + firefox + fish + flatpak + git + steam + thunderbird + restic + wget + ]; - # Enable the OpenSSH daemon - services.openssh.enable = true; + # Enable the OpenSSH daemon + services.openssh.enable = true; - # Turn off PulseAudio - hardware.pulseaudio.enable = false; + # Turn off PulseAudio + hardware.pulseaudio.enable = false; - # Enable Pipewire - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - }; + # Enable Pipewire + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; - # Enable Bluetooth - hardware.bluetooth.enable = true; + # Enable Bluetooth + hardware.bluetooth.enable = true; - # Enable CUPS - services.printing.enable = true; + # Enable CUPS + services.printing.enable = true; - # System - system.stateVersion = "22.05"; - system.autoUpgrade.enable = true; - system.autoUpgrade.allowReboot = true; + # System + system.stateVersion = "22.05"; + system.autoUpgrade.enable = true; + system.autoUpgrade.allowReboot = true; }