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" ];
|
passwordlessSyncUsers = [ "bogale" ];
|
||||||
settings.cursor.size = 24;
|
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";
|
logind.settings.Login.HandleLidSwitch = "suspend-then-hibernate";
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [ 2049 ];
|
||||||
2049
|
|
||||||
53
|
|
||||||
];
|
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
53
|
|
||||||
547
|
547
|
||||||
67
|
67
|
||||||
69
|
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 = { };
|
sops.secrets.tgbot-env = { };
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
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 = {
|
network-watchdog = {
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
curl
|
curl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue