almost there for multiple users????

This commit is contained in:
Chris Kruining 2025-03-23 20:27:14 +01:00
parent f40207c455
commit ce69116c39
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
8 changed files with 68 additions and 50 deletions

View file

@ -1,16 +1,16 @@
{ config, options, lib, pkgs, user, ... }:
{ config, lib, user, ... }:
let
inherit (lib.modules) mkIf;
inherit (lib.strings) concatStringsSep;
inherit (lib.options) mkEnableOption;
cfg = config.modules.${user}.shell.toolset.yazi;
in
{
options.modules.${user}.shell.toolset.yazi = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "system-monitor";
options.modules.${user}.shell.toolset.yazi = {
enable = mkEnableOption "system-monitor";
};
config = mkIf config.modules.${user}.shell.toolset.yazi.enable {
config = mkIf cfg.enable {
home-manager.users.${user}.programs.yazi = {
enable = true;
};