rename systems -> hosts. Per host program specifications for user programs
This commit is contained in:
parent
ef0f74aae3
commit
2bea94afc4
23 changed files with 52 additions and 27 deletions
29
hosts/_common/ragenix.nix
Normal file
29
hosts/_common/ragenix.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
# TODO check out the by host way this person does: https://github.com/hlissner/dotfiles/blob/089f1a9da9018df9e5fc200c2d7bef70f4546026/modules/agenix.nix
|
||||
{ settings, lib, ragenix, ... }:
|
||||
let
|
||||
# secretsFile = (settings.secretsDir + /secrets.nix);
|
||||
in
|
||||
{
|
||||
imports = [ ragenix.nixosModules.age ];
|
||||
environment.systemPackages = [ ragenix.packages.${settings.system.system}.default ];
|
||||
|
||||
age = {
|
||||
secrets =
|
||||
# builtins.mapAttrs
|
||||
# (name: _value: lib.nameValuePair (lib.removeSuffix ".age" name) {
|
||||
# file = (settings.secretsDir + "/${name}");
|
||||
# owner = lib.mkDefault settings.user.username;
|
||||
# })
|
||||
# (import secretsFile);
|
||||
{
|
||||
nix2github = {
|
||||
file = /${settings.secretsDir}/nix2github.age;
|
||||
owner = settings.user.username;
|
||||
};
|
||||
nix2bitbucket = {
|
||||
file = /${settings.secretsDir}/nix2bitbucket.age;
|
||||
owner = settings.user.username;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue