about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-03 15:12:16 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-03 15:12:16 -0700
commitb72274ab06b4c160fc8d3afe8e2d67863c893a58 (patch)
treeb00c3b128d55d1f51395243902c0dea60fe7df4b /lib
parentRevert "create a new role for navidrome" (diff)
downloadworld-b72274ab06b4c160fc8d3afe8e2d67863c893a58.tar.gz
home-manager: add `isTrusted`
Install and configure some programs only on trusted machines. On trusted
machines, my mails, GPG and a few other things are configured. A machine
where this is not needed on a regular basis to get things done don't
need that much information.

Also rename `desktop/trust` to `trusted`, in case we want these packages
on a host that is not a desktop, and `trusted` is a better description.
Diffstat (limited to '')
-rw-r--r--lib/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index aa55942..bb1c30f 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -34,11 +34,12 @@
     , system
     , hostname
     , isDesktop ? false
+    , isTrusted ? false
     }:
     inputs.home-manager.lib.homeManagerConfiguration {
       inherit username system;
       extraSpecialArgs = {
-        inherit system hostname isDesktop;
+        inherit system hostname isDesktop isTrusted;
       };
       homeDirectory = "/home/${username}";
       configuration = ../users/${username};