pi4 almost ready

This commit is contained in:
2025-08-27 09:44:13 -05:00
parent e74d097f0f
commit 38bd11aea7
2 changed files with 40 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }: {
{ pkgs, inputs, ... }: {
imports = [
./hardware-configuration.nix
@@ -14,30 +14,46 @@
config = {
users.users.nathan.initialPassword = "7567";
sysconfig = {
remoteBuildClient = true;
openssh.enable = true;
#pipewire.enable = true;
git.enable = true;
nh.enable = true;
netbird.enable = true;
};
home-manager = {
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; };
sharedModules = [ inputs.sops-nix.homeManagerModules.sops ];
users = {
"nathan" = lib.mkMerge [
{
config.homeconfig = {
homeScripts.enable = false;
minimal = true;
mpd.enable = true;
};
}
inputs.nathan-home-manager
];
nathan = {
#hashedPasswordFile = config.sops.secrets."nathan/pass".path;
shell = pkgs.zsh;
extraGroups = [
"wheel"
"networkmanager"
"gpio"
"spi"
"audio"
"pulse"
"pulse-access"
];
home-manager = {
enable = true;
standalone = false;
extraModules = [
{
homeconfig = {
scripts.enable = false;
minimal = true;
mpd.enable = true;
git.enable = true;
nh.enable = true;
};
}
];
};
};
};
services = {
openssh.enable = true;
#pipewire.enable = true;
netbird.enable = true;
};
};
@@ -80,26 +96,7 @@
environment.shells = with pkgs; [ zsh ];
users = {
defaultUserShell = pkgs.zsh;
groups.gpio = {};
users = {
nathan = {
isNormalUser = true;
description = "Nathan";
initialPassword = "7567";
extraGroups = [
"wheel"
"networkmanager"
"gpio"
"spi"
"audio"
"pulse"
"pulse-access"
];
};
};
};
services = {