From b194fd1649e621fd270f9799d1bcce0705191b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 7 May 2023 18:32:35 +0200 Subject: [PATCH] nixos: drop harmonia package from systemPackages --- module.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/module.nix b/module.nix index 691e2e4a..86a0a5d5 100644 --- a/module.nix +++ b/module.nix @@ -4,8 +4,6 @@ let format = pkgs.formats.toml { }; configFile = format.generate "harmonia.toml" cfg.settings; - - harmonia = import ./. { inherit pkgs; }; in { options = { @@ -36,8 +34,6 @@ in priority = 50; }; - environment.systemPackages = [ harmonia ]; - systemd.services.harmonia = { description = "harmonia binary cache service"; @@ -60,13 +56,13 @@ in environment.HOME = "/run/harmonia"; serviceConfig = { - ExecStart = "${harmonia}/bin/harmonia"; + ExecStart = "${import ./. { inherit pkgs; }}/bin/harmonia"; User = "harmonia"; Group = "harmonia"; DynamicUser = true; PrivateUsers = true; - DeviceAllow = [""]; + DeviceAllow = [ "" ]; UMask = "0066"; RuntimeDirectory = "harmonia";