add(newt): add newt to aquarius
This commit is contained in:
parent
93870202d6
commit
f381478fe1
6 changed files with 68 additions and 43 deletions
30
modules/nixos/services/newt/default.nix
Normal file
30
modules/nixos/services/newt/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.services.newt;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.newt = {
|
||||
enable = mkEnableOption "Newt";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.newt = {
|
||||
enable = true;
|
||||
environmentFile = "/run/secrets/aquarius-newt.env";
|
||||
};
|
||||
|
||||
sops.secrets."aquarius-newt.env" = {
|
||||
format = "dotenv";
|
||||
sopsFile = ../../../../secrets/aquarius-newt.env;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue