manager: install xintray on manager host
This commit is contained in:
parent
31ff132c8f
commit
48130ee1bd
@ -1,10 +1,11 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
let
|
let
|
||||||
microcaBin = "${pkgs.microca}/bin/microca";
|
microcaBin = "${pkgs.microca}/bin/microca";
|
||||||
microca = pkgs.writeScriptBin "microca" ''
|
microca = pkgs.writeScriptBin "microca" ''
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
${microcaBin} -ca-key /run/secrets/ca_key -ca-cert /run/secrets/ca_cert $@
|
${microcaBin} -ca-key /run/secrets/ca_key -ca-cert /run/secrets/ca_cert $@
|
||||||
'';
|
'';
|
||||||
|
xintray = inputs.xintray.packages.${pkgs.system}.xintray;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options = {
|
options = {
|
||||||
nixManager = {
|
nixManager = {
|
||||||
@ -29,6 +30,6 @@ in with lib; {
|
|||||||
ca_key = { owner = config.nixManager.user; };
|
ca_key = { owner = config.nixManager.user; };
|
||||||
ca_cert = { owner = config.nixManager.user; };
|
ca_cert = { owner = config.nixManager.user; };
|
||||||
};
|
};
|
||||||
environment.systemPackages = [ microca ];
|
environment.systemPackages = [ microca xintray ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user