fix systemd k3s ordering
Some checks failed
/ check (push) Failing after 35s

This commit is contained in:
iofq 2026-01-12 00:28:33 -06:00
parent f7cc6dab30
commit 1943a3c679
4 changed files with 23 additions and 6 deletions

View file

@ -23,6 +23,13 @@
tmux
];
system-net.openssh.ports = [2022];
systemd.services.k3s = {
preStart = ''
until ${pkgs.tailscale}/bin/tailscale status; do
sleep 1
done
'';
};
services = {
zfs.autoScrub.enable = true;
zfs.autoSnapshot.enable = true;

View file

@ -17,6 +17,7 @@ in
cryptsetup
nfs-utils
nerdctl
android-tools
(lib.hiPrio uutils-coreutils-noprefix)
];
extraInit = "[[ -f ${homeManagerSessionVars} ]] && source ${homeManagerSessionVars} && echo 'x' > /tmp/test";
@ -69,7 +70,6 @@ in
startAgent = true;
};
steam.enable = true;
adb.enable = true;
fish.enable = true; # enable vendor completions
nh.enable = true;
};

View file

@ -23,7 +23,10 @@
];
};
};
virtualisation.podman.enable = true;
virtualisation.docker = {
enable = true;
extraOptions = "--dns 1.1.1.1";
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
@ -34,6 +37,7 @@
labels = [
"ubuntu-latest:docker://node:24-bullseye"
"nix-upstream-latest:docker://nixos/nix:latest"
"nix-latest:docker://git.10110110.xyz/ci/nix"
];
};
};
@ -46,8 +50,15 @@
tokenFile = config.sops.secrets."password".path;
serverAddr = "https://consensus:6443";
};
services.logind.lidSwitch = "ignore";
services.logind.lidSwitchExternalPower = "ignore";
systemd.services.k3s = {
preStart = ''
until ${pkgs.tailscale}/bin/tailscale status; do
sleep 1
done
'';
};
services.logind.settings.Login.HandleLidSwitch = "ignore";
services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore";
hardware.enableRedistributableFirmware = true;
hardware.firmware = [ pkgs.linux-firmware ];
system.stateVersion = "23.11";