refactor(sops): enable sops package in sops module instead of base profile

This commit is contained in:
ooks-io 2024-04-01 13:21:57 +13:00
parent 47d77e241d
commit 51e9493c62
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,6 @@ in
home-manager.enable = true;
git.enable = true;
};
home.packages = with pkgs; [ sops ];
home = {
username = lib.mkDefault "ooks";

View file

@ -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;