dots/modules/home-manager/common/hm-sops.nix
Gene Liverman bae990279c Replace absolute path /home
In 24.11 this is no longer allowed but is easy to grab from config
2024-12-02 21:43:50 -05:00

15 lines
459 B
Nix

{ config, pkgs, hostname, username, ... }: {
home.packages = with pkgs; [
home-manager
];
sops = {
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
defaultSopsFile = ../hosts/${hostname}/secrets.yaml;
secrets = {
local_git_config.path = "${config.users.users.${username}.home}/.gitconfig-local";
local_private_env.path = "${config.users.users.${username}.home}/.private-env";
};
};
}