mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
17 lines
425 B
Nix
17 lines
425 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [inputs.sops-nix.homeManagerModules.sops];
|
|
|
|
options.myConfig.sops.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.sops.enable {
|
|
sops = {
|
|
age.sshKeyPaths = ["${config.home.homeDirectory}/.ssh/id_ed25519"];
|
|
defaultSopsFile = "${inputs.self}/users/${config.home.username}/secrets.yaml";
|
|
};
|
|
};
|
|
}
|