Skip to content

Commit

Permalink
feat: add service to start vpn at login
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Feb 4, 2024
1 parent 7d0f648 commit 09c75b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hosts/asahi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,27 @@ in {
file."bin/pbcopy".source = "${pkgs.wl-clipboard}/bin/wl-copy";
file."bin/pbpaste".source = "${pkgs.wl-clipboard}/bin/wl-paste";

# CapabilityBoundingSet=CAP_NET_ADMIN
# AmbientCapabilities=CAP_NET_ADMIN
# Running this as root is not idea but I cannot get the Set Cap bits to work
file.".config/systemd/system/nebula.service".text = ''
[Unit]
Description=Nebula Service
After=network.target
StartLimitIntervalSec=0
[Service]
Restart=always
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=${pkgs.nebula}/bin/nebula -config /etc/nebula/config.yaml
[Install]
WantedBy = ["multi-user.target"];
'';

packages = [
pkgs.cascadia-code # Fonts
pkgs.docker
Expand Down

0 comments on commit 09c75b0

Please sign in to comment.