nixcfg/common/services.nix
2025-06-21 14:27:19 -04:00

29 lines
661 B
Nix
Executable file

{ config, pkgs, lib, ... }:
{
# system packages + services
environment.systemPackages = with pkgs; [
vim
wget
fastfetch
lsof
btop
git
openssl
stdenv
gnumake
parted
zfs
nixos-generators
sqlite
];
services.openssh.enable = true;
services.printing.enable = true;
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "both";
services.tailscale.authKeyFile = lib.mkIf (config ? age && config.age ? secrets)
config.age.secrets."headscale-authkey".path;
services.tailscale.extraUpFlags = [
"--login-server=https://headscale.nekomimi.pet"
];
}