This commit is contained in:
Spectre 2024-06-07 17:34:59 +02:00
parent c003e4c44c
commit f2dc32ac0c
5 changed files with 86 additions and 2 deletions

View file

@ -4,9 +4,16 @@
./clipman.nix
./common.nix
./direnv.nix
./dunst.nix
./fzf.nix
./git.nix
./gpg.nix
./helix.nix
./packages.nix
# ./persist.nix
./persist.nix
./playerctld.nix
./rofi.nix
./sops.nix
./stylix.nix
];
}

55
home/helix.nix Normal file
View file

@ -0,0 +1,55 @@
{
pkgs,
helix,
...
}: {
programs.helix = {
enable = true;
package = helix.packages.${pkgs.system}.default;
settings = {
theme = "gruvbox_dark_hard";
editor = {
line-number = "relative";
mouse = false;
cursorline = true;
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
file-picker = {hidden = false;};
statusline = {
left = ["mode" "spinner"];
center = ["file-name" "read-only-indicator" "file-modification-indicator"];
right = [
"version-control"
"diagnostics"
"selections"
"register"
"position"
"position-percentage"
"file-encoding"
"file-line-ending"
"file-type"
];
separator = "|";
};
lsp = {
display-messages = true;
display-inlay-hints = true;
};
indent-guides = {render = true;};
idle-timeout = 0;
bufferline = "always";
soft-wrap = {
enable = true;
};
};
keys = {
insert = {
"C-space" = "completion";
};
};
};
};
}

6
home/rofi.nix Normal file
View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
};
}

10
home/sops.nix Normal file
View file

@ -0,0 +1,10 @@
{
conf,
sops-nix,
...
}: {
imports = [sops-nix.homeManagerModules.sops];
sops = {
age.keyFile = "/persist/data${conf.home}/.config/sops/age/keys.txt";
};
}