mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 19:24:03 -06:00
Update configuration.nix
This commit is contained in:
parent
d2a86373ea
commit
7fd050a899
1 changed files with 85 additions and 85 deletions
|
@ -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";
|
||||||
|
home = "/home/aaronh";
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "adm"];
|
||||||
|
isNormalUser = true;
|
||||||
|
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
||||||
|
};
|
||||||
|
|
||||||
# Enable Flatpak
|
# Allow Unfree
|
||||||
xdg = {
|
nixpkgs.config.allowUnfree = true;
|
||||||
portal = {
|
|
||||||
enable = true;
|
|
||||||
extraPortals = with pkgs; [
|
|
||||||
xdg-desktop-portal-wlr
|
|
||||||
xdg-desktop-portal-kde
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
# Enable 32 Bit libraries for applications like Steam
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
# Enable fwupd
|
# Install some packages
|
||||||
services.fwupd.enable = true;
|
environment.systemPackages =
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
firefox
|
||||||
|
fish
|
||||||
|
flatpak
|
||||||
|
git
|
||||||
|
steam
|
||||||
|
thunderbird
|
||||||
|
restic
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
|
||||||
# Define user accounts
|
# Enable the OpenSSH daemon
|
||||||
users.extraUsers.aaronh = {
|
services.openssh.enable = true;
|
||||||
description = "Aaron Honeycutt";
|
|
||||||
home = "/home/aaronh";
|
|
||||||
extraGroups = [ "wheel" "networkmanager" "adm"];
|
|
||||||
isNormalUser = true;
|
|
||||||
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow Unfree
|
# Turn off PulseAudio
|
||||||
nixpkgs.config.allowUnfree = true;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
# Enable 32 Bit libraries for applications like Steam
|
# Enable Pipewire
|
||||||
hardware.opengl.driSupport32Bit = true;
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Install some packages
|
# Enable Bluetooth
|
||||||
environment.systemPackages =
|
hardware.bluetooth.enable = true;
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
firefox
|
|
||||||
fish
|
|
||||||
flatpak
|
|
||||||
git
|
|
||||||
steam
|
|
||||||
thunderbird
|
|
||||||
restic
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon
|
# Enable CUPS
|
||||||
services.openssh.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Turn off PulseAudio
|
# System
|
||||||
hardware.pulseaudio.enable = false;
|
system.stateVersion = "22.05";
|
||||||
|
system.autoUpgrade.enable = true;
|
||||||
# Enable Pipewire
|
system.autoUpgrade.allowReboot = true;
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable Bluetooth
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
# Enable CUPS
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# System
|
|
||||||
system.stateVersion = "22.05";
|
|
||||||
system.autoUpgrade.enable = true;
|
|
||||||
system.autoUpgrade.allowReboot = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue