Commit 5f1e679

HPCesia <me@hpcesia.com>
2026-03-20 14:29:56
refactor: den aspect - desktop/yubikey
den
1 parent 769c494
Changed files (1)
modules
users
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";