From 9c2c1f2ecb04ada55e4a93f9cae8ca08479a5280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 11 Apr 2022 20:41:24 +0100 Subject: [PATCH] update to the new vpsadminos, fix boot bug --- nixos/boxes/vpsfree1/vpsfree1-vpsadminos.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/boxes/vpsfree1/vpsfree1-vpsadminos.nix b/nixos/boxes/vpsfree1/vpsfree1-vpsadminos.nix index e8644750..ee8cdb4e 100644 --- a/nixos/boxes/vpsfree1/vpsfree1-vpsadminos.nix +++ b/nixos/boxes/vpsfree1/vpsfree1-vpsadminos.nix @@ -10,8 +10,8 @@ with lib; let nameservers = [ "1.1.1.1" "2606:4700:4700::1111" ]; in { - networking.nameservers = lib.mkDefault nameservers; - services.resolved = lib.mkDefault { fallbackDns = nameservers; }; + networking.nameservers = mkDefault nameservers; + services.resolved = mkDefault { fallbackDns = nameservers; }; networking.dhcpcd.extraConfig = "noipv4ll"; systemd.services.systemd-sysctl.enable = false; @@ -26,9 +26,9 @@ in { boot.isContainer = true; boot.enableContainers = mkDefault true; boot.loader.initScript.enable = true; - boot.specialFileSystems."/run/keys".fsType = lib.mkForce "tmpfs"; - boot.systemdExecutable = - mkDefault "systemd systemd.unified_cgroup_hierarchy=0"; + boot.specialFileSystems."/run/keys".fsType = mkForce "tmpfs"; + boot.systemdExecutable = mkDefault + "/run/current-system/systemd/lib/systemd/systemd systemd.unified_cgroup_hierarchy=0"; # Overrides for documentation.enable = mkOverride 500 true; @@ -52,4 +52,3 @@ in { unitConfig.ConditionPathExists = "/ifcfg.add"; }; } -