wtf is happening
This commit is contained in:
parent
91e0976cda
commit
16da7ed48b
9 changed files with 58 additions and 21 deletions
23
systems/_common/ragenix.nix
Normal file
23
systems/_common/ragenix.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
# TODO check out the by host way this person does: https://github.com/hlissner/dotfiles/blob/089f1a9da9018df9e5fc200c2d7bef70f4546026/modules/agenix.nix
|
||||
{ settings, lib, inputs, ... }:
|
||||
let
|
||||
secretsDir = "${settings.secretsDir}";
|
||||
secretsFile = "${secretsDir}/secrets.nix";
|
||||
in
|
||||
{
|
||||
# imports = [ inputs.ragenix.nixosModules.age ];
|
||||
environment.systemPackages = [ inputs.ragenix.defaultPackage.${settings.system.architecture} ];
|
||||
|
||||
# age = {
|
||||
# secrets =
|
||||
# if pathExists secretsFile
|
||||
# then
|
||||
# mapAttrs'
|
||||
# (n: _: nameValuePair (removeSuffix ".age" n) {
|
||||
# file = "${secretsDir}/${n}";
|
||||
# owner = mkDefault settings.user.username; # TODO and root? or does that matter...
|
||||
# })
|
||||
# (import secretsFile)
|
||||
# else { };
|
||||
# };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue