diff options
author | makefu <github@syntax-fehler.de> | 2016-02-15 17:43:30 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-02-15 17:43:30 +0100 |
commit | a94a4c42065fb2fd489a03fd7b0db60ebabb8ebf (patch) | |
tree | 0d8f381eb4210a6b1abe80f27692401a0ce18e4f /krebs/3modules/repo-sync.nix | |
parent | 3ceff0ec29a36119ea83f02c8943752d91b250e9 (diff) |
s 1 wolf: use config.krebs.lib
Diffstat (limited to 'krebs/3modules/repo-sync.nix')
-rw-r--r-- | krebs/3modules/repo-sync.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/krebs/3modules/repo-sync.nix b/krebs/3modules/repo-sync.nix index c92d458dd..7a7c80a75 100644 --- a/krebs/3modules/repo-sync.nix +++ b/krebs/3modules/repo-sync.nix @@ -1,7 +1,6 @@ { config, lib, pkgs, ... }: with lib; - let cfg = config.krebs.repo-sync; @@ -71,7 +70,7 @@ let imp = { users.users.repo-sync = { name = "repo-sync"; - uid = genid "repo-sync"; + uid = config.krebs.lib.genid "repo-sync"; description = "repo-sync user"; home = cfg.stateDir; createHome = true; @@ -98,7 +97,7 @@ let PermissionsStartOnly = true; ExecStartPre = pkgs.writeScript "prepare-repo-sync-user" '' #! /bin/sh - cp -v ${lib.shell.escape cfg.privateKeyFile} ${cfg.stateDir}/ssh.priv + cp -v ${config.krebs.lib.shell.escape cfg.privateKeyFile} ${cfg.stateDir}/ssh.priv chown repo-sync ${cfg.stateDir}/ssh.priv ''; ExecStart = "${pkgs.repo-sync}/bin/repo-sync ${repo-sync-config}"; |