Add formatter & reformat.
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
# https://guekka.github.io/nixos-server-2/
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
cfg = config.services.tailscaleAutoconnect;
|
||||
in {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.tailscaleAutoconnect;
|
||||
in
|
||||
{
|
||||
options.services.tailscaleAutoconnect = {
|
||||
enable = mkEnableOption "tailscaleAutoconnect";
|
||||
|
||||
@@ -56,9 +63,15 @@ in {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
# make sure tailscale is running before trying to connect to tailscale
|
||||
after = ["network-pre.target" "tailscale.service"];
|
||||
wants = ["network-pre.target" "tailscale.service"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = [
|
||||
"network-pre.target"
|
||||
"tailscale.service"
|
||||
];
|
||||
wants = [
|
||||
"network-pre.target"
|
||||
"tailscale.service"
|
||||
];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig.Type = "oneshot";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user