summaryrefslogtreecommitdiffstats
path: root/mv/2configs/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-12-04 10:16:09 +0100
committermakefu <github@syntax-fehler.de>2015-12-04 10:16:09 +0100
commit65cc52e01e18c823016a3043b8cf41822934cc3c (patch)
tree58aa8971a4e571234a762eee20c7ec7f57a2b4d4 /mv/2configs/default.nix
parent597f9e8597c95ac9e4cba1689322c433bb0c9a75 (diff)
parentb5ffb88ba3a77d4f399d7a2815e2c61d53545f5d (diff)
Merge branch 'master' of pnp:stockholm
Conflicts: makefu/1systems/gum.nix
Diffstat (limited to 'mv/2configs/default.nix')
-rw-r--r--mv/2configs/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/mv/2configs/default.nix b/mv/2configs/default.nix
index f5b647558..9c412099e 100644
--- a/mv/2configs/default.nix
+++ b/mv/2configs/default.nix
@@ -1,12 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
+let
+ HOME = getEnv "HOME";
+in
{
krebs.enable = true;
krebs.build = {
- user = config.krebs.users.tv;
+ user = config.krebs.users.mv;
target = mkDefault "root@${config.krebs.build.host.name}";
source = {
git.nixpkgs = {
@@ -15,10 +18,10 @@ with lib;
target-path = mkDefault "/var/src/nixpkgs";
};
dir.secrets = {
- path = mkDefault "/home/tv/secrets/${config.krebs.build.host.name}";
+ path = mkDefault "${HOME}/secrets/${config.krebs.build.host.name}";
};
dir.stockholm = {
- path = mkDefault "/home/tv/stockholm";
+ path = mkDefault "${HOME}/stockholm";
target-path = mkDefault "/var/src/stockholm";
};
};
@@ -40,16 +43,16 @@ with lib;
defaultUserShell = "/run/current-system/sw/bin/bash";
mutableUsers = false;
users = {
- tv = {
+ mv = {
isNormalUser = true;
- uid = 1337;
+ uid = 1338;
};
};
};
}
{
security.sudo.extraConfig = ''
- Defaults mailto="${config.krebs.users.tv.mail}"
+ Defaults mailto="${config.krebs.users.mv.mail}"
'';
time.timeZone = "Europe/Berlin";
}