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; defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml"; defaultSopsFormat = "yaml";
}; };
/*
nix = { nix = lib.mkIf config.homeconfig.standalone.enable {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
builders = '' builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
ssh://remote-builder@blunkall.us
'';
builders-use-substituters = true; 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; services.mpris-proxy.enable = true;
programs.ssh = { programs.ssh = {

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }: { { pkgs, inputs, ... }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -14,32 +14,48 @@
config = { config = {
users.users.nathan.initialPassword = "7567";
sysconfig = { sysconfig = {
remoteBuildClient = true; 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 = { 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 = { homeconfig = {
homeScripts.enable = false; scripts.enable = false;
minimal = true; minimal = true;
mpd.enable = 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 = { boot = {
loader = { loader = {
@@ -80,26 +96,7 @@
environment.shells = with pkgs; [ zsh ]; environment.shells = with pkgs; [ zsh ];
users = { users = {
defaultUserShell = pkgs.zsh;
groups.gpio = {}; groups.gpio = {};
users = {
nathan = {
isNormalUser = true;
description = "Nathan";
initialPassword = "7567";
extraGroups = [
"wheel"
"networkmanager"
"gpio"
"spi"
"audio"
"pulse"
"pulse-access"
];
};
};
}; };
services = { services = {