nyxi-installer/configuration.nix
2022-05-31 13:34:30 +00:00

92 lines
2.1 KiB
Nix

{ 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
./plasma.nix
];
boot.loader = {
systemd-boot.enable = 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
];
};
};
services.flatpak.enable = true;
# Enable fwupd
services.fwupd.enable = true;
# Define user accounts
users.extraUsers.aaronh = {
home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" ];
isNormalUser = true;
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
};
# Install some packages
environment.systemPackages =
with pkgs;
[
firefox
fish
flatpak
git
steam
thunderbird
];
# Enable the OpenSSH daemon
services.openssh.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 CUPS
services.printing.enable = true;
# System
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
}