refactor(sops): enable sops package in sops module instead of base profile
This commit is contained in:
parent
47d77e241d
commit
51e9493c62
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ in
|
|||
home-manager.enable = true;
|
||||
git.enable = true;
|
||||
};
|
||||
home.packages = with pkgs; [ sops ];
|
||||
|
||||
home = {
|
||||
username = lib.mkDefault "ooks";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
{ lib, config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.sops;
|
||||
|
|
@ -12,6 +12,7 @@ in
|
|||
options.homeModules.sops.enable = lib.mkEnableOption "Enable sops";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.sops ];
|
||||
sops = {
|
||||
age.keyFile = "/home/ooks/.config/sops/age/keys.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue