nvf toogle

This commit is contained in:
smayzy
2025-07-06 18:55:01 +02:00
parent e9af7f9dad
commit f398d06399
2 changed files with 38 additions and 25 deletions
+2
View File
@@ -17,6 +17,8 @@
smayzy.locales.enable = true; smayzy.locales.enable = true;
smayzy.nvf.enable = true;
users.users.smayzy = { users.users.smayzy = {
isNormalUser = true; isNormalUser = true;
description = "smayzy"; description = "smayzy";
+11
View File
@@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{ {
options.smayzy.nvf.enable = mkOption {
type = types.bool;
default = false;
description = "nvf config";
};
config = mkIf config.smayzy.nvf.enable {
programs.nvf = { programs.nvf = {
enable = true; enable = true;
settings = { settings = {
@@ -29,4 +39,5 @@ programs.nvf = {
environment.systemPackages = [ environment.systemPackages = [
pkgs.nil pkgs.nil
]; ];
};
} }