summaryrefslogtreecommitdiffstats
path: root/tv/3modules/per-user.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tv/3modules/per-user.nix')
-rw-r--r--tv/3modules/per-user.nix35
1 files changed, 0 insertions, 35 deletions
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