pi4 stuffs

This commit is contained in:
2025-05-18 18:42:29 -05:00
parent cff6cf9eb7
commit 8f32c03197
4 changed files with 42 additions and 40 deletions

View File

@@ -5,7 +5,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
user = "matt"; user = "matt";
password = config.sops.secrets."desktop/matt_password".path; # password = config.sops.secrets."desktop/matt_password".path;
# kernelBundle = pkgs.linuxAndFirmware.v6_6_31; # kernelBundle = pkgs.linuxAndFirmware.v6_6_31;
in in
{ {
@@ -16,7 +16,7 @@ in
# ./hardware-configuration.nix # ./hardware-configuration.nix
# ../../share/disko/default-hardware-config.nix # ../../share/disko/default-hardware-config.nix
./networking.nix ./networking.nix
./sops.nix # ./sops.nix
../default.nix ../default.nix
]; ];
programs.zsh.enable = true; programs.zsh.enable = true;
@@ -79,7 +79,8 @@ in
mutableUsers = false; mutableUsers = false;
users."${user}" = { users."${user}" = {
isNormalUser = true; isNormalUser = true;
hashedPasswordFile = password; # hashedPasswordFile = password;
password = "BogieDudie1";
extraGroups = [ extraGroups = [
"wheel" "wheel"
"docker" "docker"

View File

@@ -26,40 +26,40 @@ in
home.homeDirectory = "/home/matt"; home.homeDirectory = "/home/matt";
home.stateVersion = "23.11"; home.stateVersion = "23.11";
sops = { # sops = {
age.keyFile = "/home/matt/.config/sops/age/keys.txt"; # age.keyFile = "/home/matt/.config/sops/age/keys.txt";
defaultSopsFile = "/etc/nixos/secrets/secrets.yaml"; # defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
validateSopsFiles = false; # validateSopsFiles = false;
secrets = { # secrets = {
"ssh-keys-public/pi4" = { # "ssh-keys-public/pi4" = {
path = "/home/matt/.ssh/id_ed25519.pub"; # path = "/home/matt/.ssh/id_ed25519.pub";
mode = "0644"; # mode = "0644";
}; # };
"ssh-keys-private/pi4" = { # "ssh-keys-private/pi4" = {
path = "/home/matt/.ssh/id_ed25519"; # path = "/home/matt/.ssh/id_ed25519";
mode = "0600"; # mode = "0600";
}; # };
"ssh-keys-public/desktop-nixos" = { # "ssh-keys-public/desktop-nixos" = {
path = "/home/matt/.ssh/authorized_keys"; # path = "/home/matt/.ssh/authorized_keys";
mode = "0600"; # mode = "0600";
}; # };
"ssh-keys-public/desktop-nixos-root" = { # "ssh-keys-public/desktop-nixos-root" = {
path = "/home/matt/.ssh/authorized_keys2"; # path = "/home/matt/.ssh/authorized_keys2";
mode = "0600"; # mode = "0600";
}; # };
"ssh-keys-public/desktop-windows" = { # "ssh-keys-public/desktop-windows" = {
path = "/home/matt/.ssh/authorized_keys3"; # path = "/home/matt/.ssh/authorized_keys3";
mode = "0600"; # mode = "0600";
}; # };
"ssh-keys-public/macbook-macos" = { # "ssh-keys-public/macbook-macos" = {
path = "/home/matt/.ssh/authorized_keys4"; # path = "/home/matt/.ssh/authorized_keys4";
mode = "0600"; # mode = "0600";
}; # };
}; # };
}; # };
programs = { programs = {
fish.enable = false; fish.enable = false;

View File

@@ -24,7 +24,7 @@ in
settings.connectivity.uri = lib.mkDefault "http://nmcheck.gnome.org/check_network_status.txt"; settings.connectivity.uri = lib.mkDefault "http://nmcheck.gnome.org/check_network_status.txt";
ensureProfiles = { ensureProfiles = {
environmentFiles = [ environmentFiles = [
config.sops.secrets.wifi.path # config.sops.secrets.wifi.path
]; ];
profiles = { profiles = {

View File

@@ -1,6 +1,6 @@
{ ... }: { ... }:
let let
rootDisk = "/dev/nvme0n1"; rootDisk = "/dev/mmcblk0";
in in
{ {
disko.devices.disk.main.imageSize = "32G"; disko.devices.disk.main.imageSize = "32G";
@@ -37,10 +37,11 @@ in
}; };
# /boot # /boot
ESP = { ESP = {
priority = 1; priority = 2;
name = "ESP"; name = "ESP";
start = "1G"; # start = "1G";
end = "2G"; # end = "2G";
size = "1G";
type = "EF00"; type = "EF00";
content = { content = {
type = "filesystem"; type = "filesystem";
@@ -98,4 +99,4 @@ in
}; };
}; };
}; };
} }