add systems

This commit is contained in:
2026-07-27 18:02:48 +09:00
parent 3e32c9874b
commit 6bd05887db
29 changed files with 342 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
sops
age
ssh-to-age
age-plugin-yubikey
yubikey-manager
pcsc-tools
mkpasswd
];
sops = {
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
};
}
+11
View File
@@ -0,0 +1,11 @@
{ inputs, ... }:
{
description = "sops-nix system integration";
includes = [ "services.openssh" ];
imports = {
nixos = [ inputs.sops-nix.nixosModules.sops ];
darwin = [ inputs.sops-nix.darwinModules.sops ];
};
}
+8
View File
@@ -0,0 +1,8 @@
{
services.pcscd.enable = true;
sops.secrets."users/moons/hashedPassword" = {
sopsFile = ../../../secrets/common/system.yaml;
neededForUsers = true;
};
}