From b72274ab06b4c160fc8d3afe8e2d67863c893a58 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 3 Apr 2022 15:12:16 -0700 Subject: 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. --- users/fcuny/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'users/fcuny/default.nix') diff --git a/users/fcuny/default.nix b/users/fcuny/default.nix index 32145dd..cf70f50 100644 --- a/users/fcuny/default.nix +++ b/users/fcuny/default.nix @@ -1,7 +1,8 @@ -{ config, lib, pkgs, isDesktop, ... }: +{ config, lib, pkgs, isDesktop, isTrusted, ... }: { - imports = [ ./cli ./devel ] ++ (if isDesktop then [ ./desktop ] else [ ]); + imports = [ ./cli ./devel ] ++ (if isDesktop then [ ./desktop ] else [ ]) + ++ (if isTrusted then [ ./trusted ] else [ ]); programs.home-manager.enable = true; -- cgit 1.4.1