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

@@ -38,27 +38,16 @@
defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml";
};
/*
nix = {
nix = lib.mkIf config.homeconfig.standalone.enable {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = {
experimental-features = [ "nix-command" "flakes" ];
builders = ''
ssh://remote-builder@blunkall.us
'';
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
builders-use-substituters = true;
};
};
programs.ssh.matchBlocks = {
"builder" = {
hostname = "blunkall.us";
user = "remote-builder";
identityFile = config.sops.secrets."".path;
port = 2222;
};
};
*/
services.mpris-proxy.enable = true;
programs.ssh = {

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }: {
{ pkgs, inputs, ... }: {
imports = [
./hardware-configuration.nix
@@ -14,32 +14,48 @@
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 [
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 = [
{
config.homeconfig = {
homeScripts.enable = false;
homeconfig = {
scripts.enable = false;
minimal = true;
mpd.enable = true;
git.enable = true;
nh.enable = true;
};
}
inputs.nathan-home-manager
];
};
};
};
services = {
openssh.enable = true;
#pipewire.enable = true;
netbird.enable = true;
};
};
boot = {
loader = {
@@ -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 = {