stormd works fully!
This commit is contained in:
parent
7afc927424
commit
4b12a463af
4 changed files with 20 additions and 9 deletions
|
@ -13,6 +13,13 @@ in
|
|||
options = {
|
||||
mods.${name} = {
|
||||
enable = mkEnableOption (lib.mdDoc "Enable ${name}");
|
||||
preflight = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Does not enable the service since we're in preflight mode.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -24,7 +31,7 @@ in
|
|||
|
||||
networking.firewall.allowedUDPPorts = [ 4242 ];
|
||||
|
||||
systemd.services."nebula" = {
|
||||
systemd.services."nebula" = mkIf (!cfg.preflight) {
|
||||
description = "Nebula VPN service";
|
||||
wants = [ "basic.target" ];
|
||||
after = [
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
ringofstorms-stormd,
|
||||
settings,
|
||||
...
|
||||
|
@ -20,7 +21,10 @@ in
|
|||
imports = [ ringofstorms-stormd.nixosModules.${settings.system.system} ];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.root.packages = [ ringofstorms-stormd.packages.${settings.system.system}.stormd ];
|
||||
services.stormd.enable = true;
|
||||
services.stormd = {
|
||||
enable = true;
|
||||
nebulaPackage = pkgs.nebula;
|
||||
extraOptions = [ "-v" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue