mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-13 11:43:01 -06:00
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
<nixos-hardware/raspberry-pi/4>
|
|
# ./programs.nix
|
|
];
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
fsType = "ext4";
|
|
options = [ "noatime" ];
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
hostName = "rpi4";
|
|
networkmanager.enable = true;
|
|
};
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "America/Denver";
|
|
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[
|
|
fish
|
|
git
|
|
neofetch
|
|
restic
|
|
wget
|
|
];
|
|
|
|
# Define user accounts
|
|
users.extraUsers.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 the OpenSSH daemon
|
|
services.openssh.enable = true;
|
|
|
|
# Enable CUPS
|
|
services.printing.enable = true;
|
|
|
|
# Enable GPU acceleration
|
|
hardware.raspberry-pi."4".fkms-3d.enable = true;
|
|
|
|
# Allow Unfree
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# System
|
|
system.stateVersion = "22.11";
|
|
system.autoUpgrade.enable = true;
|
|
|
|
|
|
}
|