lf toogle

This commit is contained in:
smayzy 2025-07-06 19:07:27 +02:00
parent d444b47af8
commit 0d3d654659
2 changed files with 81 additions and 68 deletions

View File

@ -9,6 +9,8 @@
smayzy.webapps.enable = true;
smayzy.lf.enable = true;
home.username = "smayzy";
home.homeDirectory = "/home/smayzy";
home.stateVersion = "25.05";

View File

@ -1,6 +1,16 @@
{ pkgs, config, ... }:
{ pkgs, lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.lf.enable = mkOption {
type = types.bool;
default = false;
description = "set to true if you want to use a nvidia GC";
};
config = mkIf config.smayzy.lf.enable {
xdg.configFile."lf/icons".source = ./icons;
programs.lf = {
@ -72,4 +82,5 @@
set previewer ${previewer}/bin/pv.sh
'';
};
};
}