Merge pull request #273698 from foo-dogsquared/fix-guix-gc-service
nixos/guix: fix GC service
This commit is contained in:
commit
09beff8fb5
@ -373,7 +373,6 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
||||||
MemoryDenyWriteExecute = true;
|
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
PrivateNetworks = true;
|
PrivateNetworks = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
|
@ -11,7 +11,10 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: {
|
|||||||
|
|
||||||
nodes.machine = { config, ... }: {
|
nodes.machine = { config, ... }: {
|
||||||
environment.etc."guix/scripts".source = ./scripts;
|
environment.etc."guix/scripts".source = ./scripts;
|
||||||
services.guix.enable = true;
|
services.guix = {
|
||||||
|
enable = true;
|
||||||
|
gc.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
@ -19,6 +22,7 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: {
|
|||||||
|
|
||||||
machine.wait_for_unit("multi-user.target")
|
machine.wait_for_unit("multi-user.target")
|
||||||
machine.wait_for_unit("guix-daemon.service")
|
machine.wait_for_unit("guix-daemon.service")
|
||||||
|
machine.succeed("systemctl start guix-gc.service")
|
||||||
|
|
||||||
# Can't do much here since the environment has restricted network access.
|
# Can't do much here since the environment has restricted network access.
|
||||||
with subtest("Guix basic package management"):
|
with subtest("Guix basic package management"):
|
||||||
|
Loading…
Reference in New Issue
Block a user