about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorGabriel Arazas <foodogsquared@foodogsquared.one>2023-12-12 10:38:45 +0800
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-13 14:27:08 +0100
commit9c423e191f2e2724a718ad9225ec4d05911d3d1b (patch)
treecaee0cbd719955cb9c06121aa3d540567a13b384 /nixos
parent5fb40a5816cae8006558d5ed2bd0219aec4b2c10 (diff)
nixos/guix: add test for GC service
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/guix/basic.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/guix/basic.nix b/nixos/tests/guix/basic.nix
index 7f90bdeeb1e0f..9b943b8965e60 100644
--- a/nixos/tests/guix/basic.nix
+++ b/nixos/tests/guix/basic.nix
@@ -11,7 +11,10 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: {
 
   nodes.machine = { config, ... }: {
     environment.etc."guix/scripts".source = ./scripts;
-    services.guix.enable = true;
+    services.guix = {
+      enable = true;
+      gc.enable = true;
+    };
   };
 
   testScript = ''
@@ -19,6 +22,7 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: {
 
     machine.wait_for_unit("multi-user.target")
     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.
     with subtest("Guix basic package management"):