mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
NixOS restructuring, move common imports to lib
This commit is contained in:
parent
f95cc09e13
commit
d72f1264b2
35 changed files with 33 additions and 92 deletions
15
modules/hosts/common/hm-sops.nix
Normal file
15
modules/hosts/common/hm-sops.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue