This commit is contained in:
Chris Kruining 2025-07-30 21:38:15 +02:00
parent 9aa634bd71
commit 3528e22c67
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
54 changed files with 380 additions and 1243 deletions

View file

@ -1,24 +0,0 @@
{ config, options, lib, pkgs, namespace, ... }:
let
inherit (lib) attrValues mkIf mkMerge mkOption;
inherit (lib.types) nullOr enum;
cfg = config.${namespace}.editors;
in {
options.${namespace}.editors = {
default = mkOption {
type = nullOr (enum [ "nano" "nvim" "zed" "kate" "vscodium" ]);
default = "nano";
description = "Default editor for text manipulation";
example = "nvim";
};
};
config = mkMerge [
(mkIf (cfg.default != null) {
home.sessionVariables = {
EDITOR = cfg.default;
};
})
];
}

View file

@ -5,12 +5,16 @@ let
cfg = config.${namespace}.editor.nvim;
in
{
imports = [
inputs.nvf.nixosModules.default
];
options.${namespace}.editor.nvim = {
enable = mkEnableOption "enable nvim via nvf on user level";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
home.packages = with pkgs; [
imagemagick
editorconfig-core-c
sqlite