summaryrefslogtreecommitdiffstats
path: root/old/modules/tv/users
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-16 23:22:30 +0200
committertv <tv@shackspace.de>2015-07-16 23:22:30 +0200
commit57c520b722f25f384301118046bf9cf182d4edd7 (patch)
tree57983c04bb49fe0375300861111a61cede545794 /old/modules/tv/users
parent447c63edbd403abf026800d10594ed037b4304e9 (diff)
Goodbye old world, and thanks for all the fish!
Diffstat (limited to 'old/modules/tv/users')
-rw-r--r--old/modules/tv/users/default.nix67
1 files changed, 0 insertions, 67 deletions
diff --git a/old/modules/tv/users/default.nix b/old/modules/tv/users/default.nix
deleted file mode 100644
index 719f57d70..000000000
--- a/old/modules/tv/users/default.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-
-let
- cfg = config.tv.users;
-
- opts = {
- enable = mkOption {
- default = true;
- type = types.bool;
- description = ''
- If set to false, TODO...
- '';
- };
-
- packages = mkOption {
- default = [];
- #example = literalExample "[ pkgs.firefox pkgs.thunderbird ]";
- type = with types; listOf path;
- description = ''
- TODO this description is for environment.systemPackages
- The set of packages that appear in
- /run/current-system/sw. These packages are
- automatically available to all users, and are
- automatically updated every time you rebuild the system
- configuration. (The latter is the main difference with
- installing them in the default profile,
- <filename>/nix/var/nix/profiles/default</filename>.
- '';
- };
- };
-in
-
-{
- options.tv.users = mkOption {
- default = {};
- type = with types; attrsOf optionSet;
- options = [ opts ];
- description = ''
- TODO
- '';
- };
-
- config = {
- system.activationScripts."tv.users" =
- let
- bindir = name: packages:
- pkgs.symlinkJoin "${name}-bindir" (map (path: path + "/" + "bin") packages);
- in
- ''
- mkdir -m 0755 -p /run/tv.users
- # TODO delete old
- # TODO detect collisions
- # TODO don't link .xxx-wrapped
- ${concatStrings (mapAttrsToList (name: { packages, ... }: ''
- mkdir -m 0755 -p /run/tv.users/${name}
- ln -snf ${bindir name packages} /run/tv.users/${name}/bin
- '') cfg)}
- '';
- environment.shellInit = ''
- # XXX lower precedence than ~/bin
- PATH=/run/tv.users/$LOGNAME/bin:$PATH
- export PATH
- '';
- };
-}