mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
18 lines
452 B
Nix
18 lines
452 B
Nix
|
{ config, lib, pkgs, user, ... }:
|
||
|
|
||
|
let cfg = config.modules.system.secrets;
|
||
|
in {
|
||
|
options.modules.system.secrets.enable = lib.mkEnableOption "secrets";
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
sops = {
|
||
|
defaultSopsFile = ../../secrets/secrets.yaml;
|
||
|
defaultSopsFormat = "yaml";
|
||
|
age.keyFile = "/home/${user}/.config/sops/age/keys.txt";
|
||
|
|
||
|
# Github private key
|
||
|
secrets."github/private" = { owner = "${user}"; };
|
||
|
};
|
||
|
};
|
||
|
}
|