moved ap to module
This commit is contained in:
parent
d547d2f567
commit
4430f3a1d5
6 changed files with 27 additions and 36 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
|
||||
|
|
|
|||
|
|
@ -18,7 +18,12 @@
|
|||
networking = {
|
||||
networkmanager.ensureProfiles = {
|
||||
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
||||
profiles.home-wifi = {
|
||||
profiles = {
|
||||
dhcp-ethernet.connection = {
|
||||
id = "dhcp-ethernet";
|
||||
type = "ethernet";
|
||||
};
|
||||
home-wifi = {
|
||||
connection = {
|
||||
id = "home-wifi";
|
||||
type = "wifi";
|
||||
|
|
@ -31,6 +36,7 @@
|
|||
wifi.ssid = "bogale_5";
|
||||
};
|
||||
};
|
||||
};
|
||||
wg-quick.interfaces.awg0.type = "amneziawg";
|
||||
};
|
||||
sops = {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,6 @@
|
|||
allowedUDPPorts = [ 443 ];
|
||||
};
|
||||
hostName = "nixos-server";
|
||||
networkmanager.ensureProfiles.profiles.dhcp-ethernet.connection = {
|
||||
id = "dhcp-ethernet";
|
||||
type = "ethernet";
|
||||
};
|
||||
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;
|
||||
};
|
||||
security.acme = {
|
||||
|
|
|
|||
|
|
@ -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