Add formatter & reformat.
This commit is contained in:
@@ -1,3 +1 @@
|
||||
{
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
}
|
||||
{ powerManagement.cpuFreqGovernor = "ondemand"; }
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
{
|
||||
time.timeZone = "Europe/Lisbon";
|
||||
}
|
||||
{ time.timeZone = "Europe/Lisbon"; }
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [
|
||||
"/var/db/dhcpcd"
|
||||
];
|
||||
directories = [ "/var/db/dhcpcd" ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
nix.settings.trusted-users = [ "root" "@wheel" ];
|
||||
nix.settings.trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
];
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
system.activationScripts.show-update-changelog = ''
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "[show-update-changelog] System Changelog"
|
||||
${lib.getExe pkgs.nvd} --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig"
|
||||
fi
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "[show-update-changelog] System Changelog"
|
||||
${lib.getExe pkgs.nvd} --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -8,7 +8,5 @@ in
|
||||
|
||||
services.tailscale.package = pkgs.unstable.tailscale;
|
||||
|
||||
environment.persistence."/persist".directories = [
|
||||
"/var/lib/tailscale"
|
||||
];
|
||||
environment.persistence."/persist".directories = [ "/var/lib/tailscale" ];
|
||||
}
|
||||
|
||||
@@ -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