nixos/slock: add .package option (for those wishing to override)
This commit is contained in:
parent
5d67f4277d
commit
a5cedfaffa
1 changed files with 3 additions and 2 deletions
|
@ -16,16 +16,17 @@ in
|
||||||
Whether to install slock screen locker with setuid wrapper.
|
Whether to install slock screen locker with setuid wrapper.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
package = mkPackageOption pkgs "slock" {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [ pkgs.slock ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
security.wrappers.slock =
|
security.wrappers.slock =
|
||||||
{ setuid = true;
|
{ setuid = true;
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "root";
|
||||||
source = "${pkgs.slock.out}/bin/slock";
|
source = lib.getExe cfg.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue