feat: add remote-base with default user password via sops

This commit is contained in:
2026-03-30 01:11:50 +02:00
parent 27b7b2abf2
commit 36630d98a3
4 changed files with 59 additions and 2 deletions

12
features/remote-base.nix Normal file
View File

@@ -0,0 +1,12 @@
{
nixos =
{ config, user, ... }:
{
sops.secrets.user-password = {
sopsFile = ../secrets/common.yaml;
neededForUsers = true;
};
users.users.${user}.hashedPasswordFile = config.sops.secrets.user-password.path;
};
}