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" ];
|
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
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,23 @@
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.ensureProfiles = {
|
networkmanager.ensureProfiles = {
|
||||||
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
environmentFiles = [ config.sops.secrets.wifi-env.path ];
|
||||||
profiles.home-wifi = {
|
profiles = {
|
||||||
connection = {
|
dhcp-ethernet.connection = {
|
||||||
id = "home-wifi";
|
id = "dhcp-ethernet";
|
||||||
type = "wifi";
|
type = "ethernet";
|
||||||
};
|
};
|
||||||
ipv6.method = "disabled";
|
home-wifi = {
|
||||||
wifi-security = {
|
connection = {
|
||||||
key-mgmt = "sae";
|
id = "home-wifi";
|
||||||
psk = "$BOGALE_5_PSK";
|
type = "wifi";
|
||||||
|
};
|
||||||
|
ipv6.method = "disabled";
|
||||||
|
wifi-security = {
|
||||||
|
key-mgmt = "sae";
|
||||||
|
psk = "$BOGALE_5_PSK";
|
||||||
|
};
|
||||||
|
wifi.ssid = "bogale_5";
|
||||||
};
|
};
|
||||||
wifi.ssid = "bogale_5";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
wg-quick.interfaces.awg0.type = "amneziawg";
|
wg-quick.interfaces.awg0.type = "amneziawg";
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,6 @@
|
||||||
allowedUDPPorts = [ 443 ];
|
allowedUDPPorts = [ 443 ];
|
||||||
};
|
};
|
||||||
hostName = "nixos-server";
|
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;
|
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;
|
||||||
};
|
};
|
||||||
security.acme = {
|
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 = { };
|
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