summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/Reaktor.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-12-26 10:44:54 +0100
committerlassulus <lass@aidsballs.de>2015-12-26 10:44:54 +0100
commit6733fa66b46f0d00b7016a92f4ef093ccb7b7a2b (patch)
tree13bca60f67491263bf027b2b1f09cf5b14b1c9c0 /krebs/3modules/Reaktor.nix
parentf55b44eb7cffbe0934785afd3a36001ba0713ad1 (diff)
parent763f0db52ad45eef6e09d7982cd0f6cd898857e3 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/Reaktor.nix')
-rw-r--r--krebs/3modules/Reaktor.nix20
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;