Personal Nix setup

Add tail-tray and update networkmanager backend

Changed files
+9 -4
machines
sodacream
modules
desktop
server
+1 -1
machines/sodacream/configuration.nix
···
fonts.enable = true;
server = {
enable = true;
-
sshd.enable = true;
tailscale.enable = true;
+
sshd.enable = false;
};
};
+4 -1
modules/desktop/default.nix
···
};
networkmanager = {
enable = mkDefault true;
-
wifi.powersave = true;
+
wifi = {
+
backend = "iwd";
+
powersave = true;
+
};
};
};
+4 -2
modules/server/tailscale.nix
···
-
{ lib, config, hostname, ... }:
+
{ lib, config, pkgs, user, hostname, ... }:
with lib;
let
···
useRoutingFeatures = if cfgRouter.enable then "server" else "none";
extraUpFlags = if cfgRouter.enable
then [ "--advertise-exit-node" "--ssh" "--accept-dns=false" ]
-
else [ "--ssh" "--accept-dns=true" ];
+
else [ "--ssh" "--accept-dns=true" "--operator=${user}" ];
extraDaemonFlags = [ "--no-logs-no-support" ];
authKeyFile = "/run/secrets/tailscale";
};
systemd.services.tailscaled.serviceConfig.Environment = [ "TS_DEBUG_DISABLE_PORTLIST=true" ];
+
+
environment.systemPackages = mkIf config.modules.desktop.enable [ pkgs.tail-tray ];
};
}