Improve usage of roles. It should be much easier to read and use now.

This commit is contained in:
2025-03-29 22:48:14 -07:00
parent 1f9fbd87ac
commit 8c4dc9cb74
8 changed files with 152 additions and 128 deletions

View File

@@ -1,9 +1,8 @@
{ hostname, machineRoles }:
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig, ... }:
let
# Check if the current machine has the role "personal"
thisMachineIsPersonal = builtins.elem hostname machineRoles.personal;
thisMachineIsPersonal = osConfig.thisMachine.hasRole."personal";
in
{
home.username = "googlebot";