pi4 stuff

This commit is contained in:
mjallen18
2025-05-19 12:01:07 -05:00
parent 0722468808
commit 8f23dfea4e
6 changed files with 37 additions and 26 deletions

8
flake.lock generated
View File

@@ -196,16 +196,16 @@
}, },
"desktop-nixpkgs": { "desktop-nixpkgs": {
"locked": { "locked": {
"lastModified": 1747327360, "lastModified": 1747542820,
"narHash": "sha256-LSmTbiq/nqZR9B2t4MRnWG7cb0KVNU70dB7RT4+wYK4=", "narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e06158e58f3adee28b139e9c2bcfcc41f8625b46", "rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable-small", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -19,9 +19,17 @@ in
]; ];
programs.zsh.enable = true; programs.zsh.enable = true;
services.hardware.argonone = { services = {
enable = true; hardware.argonone = {
package = pkgs.argononed; enable = true;
package = pkgs.argononed;
};
openssh = {
enable = true;
authorizedKeysFiles = [
config.sops.secrets."ssh-keys-public/pi5".path
];
};
}; };
systemd.services.btattach = { systemd.services.btattach = {

View File

@@ -39,25 +39,25 @@ in
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";
}; # };
}; };
}; };

View File

@@ -24,7 +24,7 @@
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"
{ file = "/etc/nix/id_rsa"; parentDirectory = { mode = "u=rwx,g=,o="; }; } #{ file = "/etc/nix/id_rsa"; parentDirectory = { mode = "u=rwx,g=,o="; }; }
]; ];
}; };

View File

@@ -35,6 +35,9 @@ in
group = config.users.users."${user}".group; group = config.users.users."${user}".group;
restartUnits = [ "sshd.service" ]; restartUnits = [ "sshd.service" ];
}; };
"ssh-keys-public/pi5" = {
neededForUsers = true;
};
}; };
}; };
} }

View File

@@ -1,6 +1,6 @@
{ ... }: { ... }:
let let
rootDisk = "/dev/nvme0n1"; rootDisk = "/dev/sda";
in in
{ {
disko.devices.disk.main.imageSize = "32G"; disko.devices.disk.main.imageSize = "32G";
@@ -84,4 +84,4 @@ in
}; };
}; };
}; };
} }