Overhaul luna complete
This commit is contained in:
parent
06f5971965
commit
6f9fdca876
110 changed files with 2408 additions and 2129 deletions
33
modules/network/mullvad.nix
Normal file
33
modules/network/mullvad.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||
cfg = config.horseman.network.mullvad;
|
||||
in {
|
||||
options = {
|
||||
horseman.network.mullvad = {
|
||||
enable = mkEnableOption "Enables the Mullvad VPN";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
services = {
|
||||
mullvad-vpn = {
|
||||
enable = true;
|
||||
package = pkgs.mullvad-vpn;
|
||||
};
|
||||
resolved = {
|
||||
enable = true;
|
||||
dnssec = "true";
|
||||
domains = ["~."];
|
||||
fallbackDns = ["1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one"];
|
||||
};
|
||||
};
|
||||
networking.nameservers = ["1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue