summaryrefslogtreecommitdiffstats
path: root/tv/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-06 21:37:58 +0100
committertv <tv@krebsco.de>2015-11-06 21:37:58 +0100
commita0c068d6ec5d1cc6b1c58fe9af379b638a346220 (patch)
tree3b7a1550829a3c9ebee76ae95258f0374c41c9b2 /tv/3modules
parentb54f00c6954a0b44abb52289332c748f95d796d3 (diff)
{tv => krebs} per-user
Diffstat (limited to 'tv/3modules')
-rw-r--r--tv/3modules/default.nix1
-rw-r--r--tv/3modules/per-user.nix35
2 files changed, 0 insertions, 36 deletions
diff --git a/tv/3modules/default.nix b/tv/3modules/default.nix
index 3a75d6e43..bb10d8261 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 8d21a01d9..000000000
--- 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