mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add muop to wireguard
This commit is contained in:
parent
b739a26edf
commit
15053e74e0
4 changed files with 42 additions and 38 deletions
|
|
@ -37,7 +37,7 @@ in {
|
|||
mods.server.sync.enable = true;
|
||||
mods.tailscale.enable = true;
|
||||
mods.openvpn.enable = false;
|
||||
mods.wireguard.enable = true;
|
||||
mods.wireguard.id = 2;
|
||||
mods.i2p.enable = true;
|
||||
|
||||
services.xserver.windowManager.i3.enable = true;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ in {
|
|||
mods.server.sync.enable = true;
|
||||
mods.tailscale.enable = false;
|
||||
mods.openvpn.enable = false;
|
||||
mods.wireguard.enable = false;
|
||||
mods.wireguard.id = 4;
|
||||
|
||||
services.xserver.windowManager.i3.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,11 +8,12 @@ in with lib; {
|
|||
options.mods = {
|
||||
i2p.enable = mkEnableOption "enables i2p network";
|
||||
tailscale.enable = mkEnableOption "enables tailscale";
|
||||
wireguard.enable = mkEnableOption "enables wireguard client";
|
||||
|
||||
wireguard.id = mkOption {
|
||||
type = with types; nullOr ints.u8;
|
||||
default = null;
|
||||
};
|
||||
|
||||
openvpn.enable = mkEnableOption "enables openvpn config";
|
||||
openvpn.config = let
|
||||
username = "${config.mods.user.name}";
|
||||
|
|
@ -79,5 +80,8 @@ in with lib; {
|
|||
};
|
||||
};
|
||||
|
||||
# gateway =
|
||||
# "${pkgs.networkmanager}/bin/nmcli dev show ${interface} | ${pkgs.gnugrep}/bin/fgrep IP4.GATEWAY | ${pkgs.awk}/bin/awk {print $2}";
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
{ pkgs, lib, config, inputs, system, ... }: {
|
||||
|
||||
options = {
|
||||
mods.nix.upgrade.enable = lib.mkEnableOption "enables nix auto upgrade";
|
||||
mods.nix.clean.enable = lib.mkEnableOption "enables nix auto cleaning";
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
config =
|
||||
let flake = "${config.environment.sessionVariables.XDG_CONFIG_HOME}/home";
|
||||
in {
|
||||
system.autoUpgrade = {
|
||||
enable = config.mods.nix.upgrade.enable;
|
||||
flake = inputs.self.outPath;
|
||||
flake = flake;
|
||||
flags = [ "--commit-lock-file" "-L" ];
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "45min";
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
enable = true;
|
||||
clean.enable = config.mods.nix.clean.enable;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = inputs.self.outPath;
|
||||
flake = flake;
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue