diff options
author | tv <tv@krebsco.de> | 2015-11-06 21:37:58 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-11-06 21:37:58 +0100 |
commit | 70633304f41e59afac971dbf9085b3129e2d4c5a (patch) | |
tree | ff1120b486639e7164ce693f03cb24cb44eacc8d /tv | |
parent | a37227c0e9aa7140d586f35cba313bc6d9623273 (diff) |
{tv => krebs} per-user
Diffstat (limited to 'tv')
-rw-r--r-- | tv/3modules/default.nix | 1 | ||||
-rw-r--r-- | tv/3modules/per-user.nix | 35 |
2 files changed, 0 insertions, 36 deletions
diff --git a/tv/3modules/default.nix b/tv/3modules/default.nix index 3a75d6e..bb10d82 100644 --- a/tv/3modules/default.nix +++ b/tv/3modules/default.nix @@ -5,6 +5,5 @@ _: ./consul.nix ./ejabberd.nix ./iptables.nix - ./per-user.nix ]; } diff --git a/tv/3modules/per-user.nix b/tv/3modules/per-user.nix deleted file mode 100644 index 8d21a01..0000000 --- a/tv/3modules/per-user.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - cfg = config.tv.per-user; - - out = { - options.tv.per-user = api; - config = imp; - }; - - api = mkOption { - type = with types; attrsOf (submodule { - options = { - packages = mkOption { - type = listOf path; - default = []; - }; - }; - }); - default = {}; - }; - - imp = { - environment = { - etc = flip mapAttrs' cfg (name: { packages, ... }: { - name = "per-user/${name}"; - value.source = pkgs.symlinkJoin "per-user.${name}" packages; - }); - profiles = ["/etc/per-user/$LOGNAME"]; - }; - }; - -in out |