Commit 5f1e679
Changed files (1)
modules
users
hpcesia
modules/users/hpcesia/default.nix
@@ -9,6 +9,18 @@ in {
<den/primary-user>
];
+ den.aspects.hpcesia.provides.to-hosts.includes = [
+ ({host, ...}: let
+ listHas = l: e: (lib.lists.findFirstIndex (x: x == e) null l) != null;
+ isDevelop = listHas ["dev-server" "desktop" "laptop"] host.usage;
+ isGraphic = listHas ["desktop" "laptop"] host.usage;
+ in {
+ includes = lib.optionals (isDevelop && isGraphic) [
+ <desktop/yubikey>
+ ];
+ })
+ ];
+
den.aspects.hpcesia.nixos = {config, ...}: {
users.users.hpcesia = {
description = "HPCesia";