Update rpi4.nix

This commit is contained in:
Aaron Honeycutt 2023-05-12 22:08:48 +00:00
parent 620169fad4
commit 423504ec67

View file

@ -1,12 +1,15 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = imports = [
[ # <nixos-hardware/raspberry-pi/4>
<nixos-hardware/raspberry-pi/4> ./home-assistant.nix
# ./gnome.nix
# ./programs.nix # ./programs.nix
]; ];
# boot.kernelPackages = pkgs.linuxPackages_latest;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
fileSystems = { fileSystems = {
@ -36,7 +39,7 @@
]; ];
# Define user accounts # Define user accounts
users.extraUsers.aaronh = { users.users.aaronh = {
description = "Aaron Honeycutt"; description = "Aaron Honeycutt";
home = "/home/aaronh"; home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" "adm"]; extraGroups = [ "wheel" "networkmanager" "adm"];
@ -62,7 +65,7 @@
# Enable Bluetooth # Enable Bluetooth
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# Enable the OpenSSH daemon # Enable SSH
services.openssh.enable = true; services.openssh.enable = true;
# Enable CUPS # Enable CUPS
@ -74,8 +77,15 @@
# Allow Unfree # Allow Unfree
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
services.hydra = {
enable = false;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@localhost";
buildMachinesFiles = [];
useSubstitutes = true;
};
# System # System
system.stateVersion = "22.11"; system.stateVersion = "22.11";
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
} }