fix
This commit is contained in:
parent
d547d2f567
commit
69d24d2e7f
4 changed files with 12 additions and 23 deletions
|
|
@ -48,13 +48,6 @@
|
|||
passwordlessSyncUsers = [ "bogale" ];
|
||||
settings.cursor.size = 24;
|
||||
};
|
||||
greetd = {
|
||||
enable = true;
|
||||
settings.default_session = {
|
||||
command = "${pkgs.noctalia-greeter}/bin/noctalia-greeter-session";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
logind.settings.Login.HandleLidSwitch = "suspend-then-hibernate";
|
||||
pipewire = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
{ config, pkgs, ... }: {
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
2049
|
||||
53
|
||||
];
|
||||
allowedTCPPorts = [ 2049 ];
|
||||
allowedUDPPorts = [
|
||||
53
|
||||
547
|
||||
67
|
||||
69
|
||||
|
|
|
|||
|
|
@ -29,4 +29,15 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
systemd.services.hotspot-routing = {
|
||||
after = [ "wg-quick-awg0.service" ];
|
||||
path = [ pkgs.iproute2 ];
|
||||
preStop = "ip rule del from 10.1.0.0/16 lookup main";
|
||||
requiredBy = [ "wg-quick-awg0.service" ];
|
||||
script = "ip rule add from 10.1.0.0/16 lookup main";
|
||||
serviceConfig = {
|
||||
RemainAfterExit = true;
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,17 +18,6 @@
|
|||
sops.secrets.tgbot-env = { };
|
||||
systemd = {
|
||||
services = {
|
||||
hotspot-routing = {
|
||||
after = [ "wg-quick-awg0.service" ];
|
||||
path = [ pkgs.iproute2 ];
|
||||
preStop = "ip rule del from 10.1.0.0/16 lookup main";
|
||||
requiredBy = [ "wg-quick-awg0.service" ];
|
||||
script = "ip rule add from 10.1.0.0/16 lookup main";
|
||||
serviceConfig = {
|
||||
RemainAfterExit = true;
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
network-watchdog = {
|
||||
path = with pkgs; [
|
||||
curl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue