diff --git a/config/colorscheme.nix b/config/colorscheme.nix index c675a62..d9f35d1 100644 --- a/config/colorscheme.nix +++ b/config/colorscheme.nix @@ -1,13 +1,14 @@ -# Use catppuccin mocha variant { - catppuccin = { - enable = true; + colorschemes = { + catppuccin = { + enable = true; - settings = { - flavour = "mocha"; + settings = { + flavour = "mocha"; - # Needed to keep terminal transparency, if any - transparent_background = true; + # Needed to keep terminal transparency, if any + transparent_background = true; + }; }; }; } diff --git a/config/default.nix b/config/default.nix new file mode 100644 index 0000000..88c0de5 --- /dev/null +++ b/config/default.nix @@ -0,0 +1,13 @@ +{ lib, ... }@args: + +let + definitions = lib.attrNames ( + lib.filterAttrs + (filename: kind: + filename != "default.nix" + && (kind == "regular" || kind == "directory") + ) + (builtins.readDir ./.) + ); +in +lib.mkMerge (map (file: import ./${file}) definitions) diff --git a/config/keymaps.nix b/config/keymaps.nix index e29e040..02c27a6 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -4,30 +4,32 @@ let options.desc = "Force write"; }; in -[ - { - key = "n"; - action = "enew"; - options.desc = "New file"; - } - { - inherit (forceWrite) action options; - key = ""; - } - { - inherit (forceWrite) options; - mode = [ "i" "x" ]; - key = ""; - action = "${forceWrite.action}"; - } - { - key = "|"; - action = "vsplit"; - options.desc = "Split vertically"; - } - { - key = "\\"; - action = "split"; - options.desc = "Split horizontally"; - } -] +{ + keymaps = [ + { + key = "n"; + action = "enew"; + options.desc = "New file"; + } + { + inherit (forceWrite) action options; + key = ""; + } + { + inherit (forceWrite) options; + mode = [ "i" "x" ]; + key = ""; + action = "${forceWrite.action}"; + } + { + key = "|"; + action = "vsplit"; + options.desc = "Split vertically"; + } + { + key = "\\"; + action = "split"; + options.desc = "Split horizontally"; + } + ]; +} diff --git a/config/options.nix b/config/options.nix index 8e3e4bc..988abe7 100644 --- a/config/options.nix +++ b/config/options.nix @@ -2,102 +2,104 @@ # Use :options to get the list of all options # Use :h