try this for now

This commit is contained in:
Osman Faruk Bayram 2024-12-14 03:21:29 +03:00
parent 7534af33d6
commit c363306635
5 changed files with 60 additions and 8 deletions

14
config/colorscheme.nix Normal file
View file

@ -0,0 +1,14 @@
{
colorschemes = {
catppuccin = {
enable = true;
settings = {
flavour = "mocha";
# Needed to keep terminal transparency, if any
transparent_background = false;
};
};
};
}

View file

@ -1,9 +1,14 @@
{
options = {
# Enable relative line numbers
number = true;
relativenumber = true;
{ lib, ... }:
}; 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)

7
config/options.nix Normal file
View file

@ -0,0 +1,7 @@
{
opts = {
# Enable relative line numbers
number = true;
relativenumber = true;
};
}

26
default.nix Normal file
View file

@ -0,0 +1,26 @@
_:
{
imports = [
./config
# ./plugins
];
config = {
# Use <Space> as leader key
# globals.mapleader = " ";
# Set 'vi' and 'vim' aliases to nixvim
viAlias = true;
vimAlias = true;
# Setup clipboard support
clipboard = {
# Use xsel as clipboard provider
# providers.xsel.enable = true;
# Sync system clipboard
register = "unnamedplus";
};
};
}

View file

@ -52,7 +52,7 @@
nixvim.legacyPackages.${system}.makeNixvimWithModule { nixvim.legacyPackages.${system}.makeNixvimWithModule {
inherit pkgs; inherit pkgs;
module = ./config; module = ./.;
extraSpecialArgs = specialArgs // { extraSpecialArgs = specialArgs // {
inherit pkgs; inherit pkgs;