network updates

This commit is contained in:
Rouven Seifert 2023-04-06 11:00:53 +02:00
parent 9e8ac20c4e
commit 706220f980
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 33 additions and 29 deletions

View file

@ -6,7 +6,8 @@
[
./hardware-configuration.nix
./modules/networks
./modules/greetd ./modules/snapper
./modules/greetd
./modules/snapper
../../shared/vim.nix
../../shared/sops.nix
../../shared/gpg.nix
@ -89,7 +90,8 @@
printing = {
enable = true;
};
avahi = { # autodiscover printers
avahi = {
# autodiscover printers
enable = true;
nssmdns = true;
};
@ -122,6 +124,9 @@
};
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=2h
'';
services.logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchDocked = "suspend-then-hibernate";

View file

@ -11,8 +11,7 @@
owner = config.users.users.systemd-network.name;
};
};
networking = {
useNetworkd = true;
networking = { useNetworkd = true;
hostName = "thinkpad";
hostId = "79353b92"; # Define your hostname.
firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }]; # open ports for kde connect
@ -52,7 +51,7 @@
networks."10-wireless-home" = {
matchConfig = {
Name = "wlp9s0";
BSSID = "3c:a6:2f:6f:63:eb 3c:a6:2f:6f:63:ea";
SSID = "Smoerrebroed";
};
networkConfig = {
DHCP = "yes";