@cryptotaxi247 / infra-1 / commits / f45fea85

tarball-mirror: switch to system user, change gid

Pierre Bourdon committed Feb 22, 2024 at 09:46 UTC f45fea8542f78157371bbd155d9f85ac05caa20f
1 file changed +6 -2
modules/tarball-mirror.nix
+6 -2
@@ -25,12 +25,16 @@ in
25 owner = "tarball-mirror";
26 };
27
28 - users.extraUsers.tarball-mirror =
28 + users.users.tarball-mirror =
29 { description = "Nixpkgs tarball mirroring user";
30 home = "/home/tarball-mirror";
31 - isNormalUser = true;
31 + createHome = true;
32 + isSystemUser = true;
33 + group = "tarball-mirror";
34 };
35
36 + users.groups.tarball-mirror = {};
37 +
38 systemd.services.mirror-tarballs =
39 { description = "Mirror Nixpkgs Tarballs";
40 path = [ config.nix.package pkgs.git pkgs.bash ];