mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
16 lines
342 B
Nix
16 lines
342 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib; {
|
|
options.elss.wireguard = {
|
|
enable = mkEnableOption "Setup wireguard";
|
|
|
|
};
|
|
config =
|
|
let
|
|
cfg = config.elss;
|
|
hostname = cfg.hostName;
|
|
secrets = ../machines
|
|
+ builtins.toPath "/${hostName}/secrets/wireguard.yaml";
|
|
in
|
|
mkIf cfg.wireguard.enable { };
|
|
}
|