mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
network updates
This commit is contained in:
parent
9e8ac20c4e
commit
706220f980
3 changed files with 33 additions and 29 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue