diff options
author | tv <tv@krebsco.de> | 2015-12-26 05:55:13 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-12-26 05:58:37 +0100 |
commit | 763f0db52ad45eef6e09d7982cd0f6cd898857e3 (patch) | |
tree | 77594d44153f6d6602783718d491024e40bd4423 /krebs/3modules/Reaktor.nix | |
parent | a226298f4d545ea66b830833ef9f19c1785a4546 (diff) |
{pkgs => lib}.genid
Diffstat (limited to 'krebs/3modules/Reaktor.nix')
-rw-r--r-- | krebs/3modules/Reaktor.nix | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/krebs/3modules/Reaktor.nix b/krebs/3modules/Reaktor.nix index 1ec49b81e..0fca52203 100644 --- a/krebs/3modules/Reaktor.nix +++ b/krebs/3modules/Reaktor.nix @@ -1,19 +1,8 @@ -{ config, pkgs,lib, ... }: - +{ config, lib, pkgs, ... }: +with lib; let - inherit (lib) - mkIf - mkOption - types - singleton - isString - optionalString - concatStrings - escapeShellArg - ; - ReaktorConfig = pkgs.writeText "config.py" '' ${if (isString cfg.overrideConfig ) then '' # Overriden Config @@ -86,10 +75,9 @@ let imp = { # for reaktor get-config - users.extraUsers = singleton { + users.extraUsers = singleton rec { name = "Reaktor"; - # uid = config.ids.uids.Reaktor; - uid = 2066439104; #genid Reaktor + uid = genid name; description = "Reaktor user"; home = "/var/lib/Reaktor"; createHome = true; |