mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
parent
95b95b1407
commit
ad8b644de1
1 changed files with 12 additions and 3 deletions
|
@ -9,10 +9,19 @@ let
|
|||
in {
|
||||
meta.maintainers = [ maintainers.gerschtli ];
|
||||
|
||||
options = { services.lorri.enable = mkEnableOption "lorri build daemon"; };
|
||||
options.services.lorri = {
|
||||
enable = mkEnableOption "lorri build daemon";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.lorri;
|
||||
defaultText = literalExample "pkgs.lorri";
|
||||
description = "Which lorri package to install.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.lorri ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
systemd.user = {
|
||||
services.lorri = {
|
||||
|
@ -24,7 +33,7 @@ in {
|
|||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.lorri}/bin/lorri daemon";
|
||||
ExecStart = "${cfg.package}/bin/lorri daemon";
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = "read-only";
|
||||
|
|
Loading…
Reference in a new issue