sops: first secret integration (nix-settings)

This commit is contained in:
Trolli Schmittlauch 2026-04-06 00:14:48 +02:00
parent e8e402e9b7
commit 8914fa79ed
10 changed files with 86 additions and 5 deletions

View file

@ -13,6 +13,7 @@
./modules/captive-browser.nix
./modules/ensureDirs.nix
./modules/ssh.nix
./modules/sops.nix
];
home.homeDirectory =
if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";

7
home/modules/sops.nix Normal file
View file

@ -0,0 +1,7 @@
{ inputs, ... }:
{
sops = {
age.keyFile = "/home/user/.age-key.txt"; # must have no password!
# deliberately not setting `defaultSopsFile` because there is no clear file-hostname-mapping. Each separate home config has to configure this explicitly.
};
}