mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
39 lines
960 B
Nix
39 lines
960 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
users.users.root.openssh.authorizedKeys.keys = let
|
|
ids = import ../../../identities.nix;
|
|
in
|
|
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
|
|
|
|
networking = {
|
|
networkmanager.enable = lib.mkForce false;
|
|
|
|
firewall.allowedTCPPorts = [
|
|
8080
|
|
|
|
# For 'localsend'
|
|
# https://github.com/localsend/localsend?tab=readme-ov-file#setup
|
|
53317
|
|
];
|
|
|
|
# To enable roaming https://wiki.archlinux.org/title/Wpa_supplicant#Roaming
|
|
wireless = {
|
|
enable = true;
|
|
userControlled.enable = true;
|
|
secretsFile = config.age.secrets.wpa_password.path;
|
|
scanOnLowSignal = false;
|
|
networks = let
|
|
fromList = import ../../../networks/wpa_supplicant-compat.nix;
|
|
networks = import ../../../networks/list.nix;
|
|
in
|
|
fromList (
|
|
builtins.filter (x: x.ssid == "~") networks
|
|
);
|
|
};
|
|
};
|
|
|
|
hardware.bluetooth.enable = true;
|
|
}
|