diff options
author | makefu <github@syntax-fehler.de> | 2015-11-06 22:38:44 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-11-06 22:38:44 +0100 |
commit | 9a0e67cf65c5a827df7fca7573f47f3a43474df6 (patch) | |
tree | 72058c48138b25e5a0397d21d27ea4cb2a6cca2e /tv/2configs/z.nix | |
parent | 736e1426d5a7ec76d0987840552d56c6b4f0248e (diff) | |
parent | 4d93a8215f08cbea0bbcb8c668f2bbc9600016da (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'tv/2configs/z.nix')
-rw-r--r-- | tv/2configs/z.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tv/2configs/z.nix b/tv/2configs/z.nix new file mode 100644 index 000000000..e5494ecc9 --- /dev/null +++ b/tv/2configs/z.nix @@ -0,0 +1,40 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + krebs.per-user.z.packages = [ + (pkgs.writeScriptBin "cr" '' + #! /bin/sh + set -efu + export LC_TIME=de_DE.utf8 + exec ${pkgs.chromium}/bin/chromium \ + --ssl-version-min=tls1 \ + --disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \ + --disk-cache-size=50000000 \ + "%@" + '') + ]; + + programs.bash.interactiveShellInit = '' + case ''${XMONAD_SPAWN_WORKSPACE-} in + za|zh|zj|zs) + exec sudo -u z -i + ;; + esac + ''; + + security.sudo.extraConfig = "tv ALL=(z) NOPASSWD: ALL"; + + users.users.z = { + extraGroups = [ + "audio" + "vboxusers" + "video" + ]; + group = "subusers"; + home = "/home/z"; + uid = 3043726074; # genid z + useDefaultShell = true; + }; +} |