Update configuration.nix

This commit is contained in:
Aaron Honeycutt 2022-09-02 18:15:13 +00:00
parent d2a86373ea
commit 7fd050a899

View file

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