Compare commits

...

3 commits

7 changed files with 24 additions and 14 deletions

View file

@ -19,4 +19,5 @@
];
options.patagia.desktop.enable = lib.mkEnableOption "Desktop environment";
options.patagia.oled.enable = lib.mkEnableOption "Darker darks on oled screens";
}

View file

@ -63,10 +63,12 @@
};
};
xdg.configFile."ghostty/themes/PatagiaDark".text = ''
# background = "#14151a"
# foreground = "#d1d5db"
background = "#000000"
xdg.configFile."ghostty/themes/PatagiaDark".text =
let
background = if config.patagia.oled.enable then "#000000" else "#14151a";
in
''
background = "${background}"
foreground = "#d1d5db"
cursor-color = #00d992
selection-background = #d7d7d7

View file

@ -39,7 +39,7 @@ local colors = {
},
dark = {
background = hsl(230, 13, 9),
background = "NONE",
foreground = hsl(216, 12, 84),
accent1 = hsl(12, 100, 50),

View file

@ -69,7 +69,7 @@ MiniPick.registry.files_root = function(local_opts)
local root_dir = vim.fs.dirname(vim.fs.find(root_patterns, { upward = true })[1])
local_opts.cwd = root_dir
local_opts.tool = "rg"
return MiniPick.builtin.files(local_opts, { source = { cwd = root_dir, tool = "ripgrep" } })
return MiniPick.builtin.files(local_opts, { source = { cwd = root_dir, tool = "rg" } })
end
MiniPick.registry.grep_live_root = function(local_opts)
local root_patterns = { ".jj", ".git" }
@ -130,9 +130,6 @@ require("mini.pick").registry.buffers = function(local_opts, opts)
return require("mini.pick").start(opts)
end
local miniclue = require('mini.clue')
miniclue.setup({ -- cute prompts about bindings
triggers = {

View file

@ -53,10 +53,13 @@
ripgrep = {
enable = true;
arguments = [
"--glob=!.git/*"
"--glob=!.jj/*"
"--glob=!result/*"
"--glob=!target/*"
"--glob=!**/.cache/*"
"--glob=!**/.direnv/*"
"--glob=!**/.git/*"
"--glob=!**/.jj/*"
"--glob=!**/{node_modules,.npm,dist}/*"
"--glob=!**/target/*"
"--glob=!**/result/*"
];
};

View file

@ -116,9 +116,12 @@
"*.so"
"*.swp"
".direnv"
".env"
".idea"
".nixos-test-history"
".null-ls_*"
"result"
"/result*"
"/target"
];
signing = {

View file

@ -5,6 +5,10 @@
./desktop.nix
];
patagia = {
oled.enable = true;
};
dconf.settings = {
"org/gnome/shell" = {
enabled-extensions = [ "Battery-Health-Charging@maniacx.github.com" ];