This commit is contained in:
Spectre 2025-03-16 19:17:31 +01:00
parent d185bdd9aa
commit b680a9fb53
4 changed files with 58 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ sops-nix, stylix, ...}: { {sops-nix, ...}: {
imports = [ imports = [
sops-nix.homeManagerModules.sops sops-nix.homeManagerModules.sops

View file

@ -1,5 +1,6 @@
{ {
pkgs, pkgs,
lib,
... ...
}: { }: {
programs.helix = { programs.helix = {
@ -31,6 +32,10 @@
]; ];
separator = "|"; separator = "|";
}; };
inline-diagnostics = {
cursor-line = "hint";
other-lines = "warning";
};
lsp = { lsp = {
display-messages = true; display-messages = true;
display-inlay-hints = true; display-inlay-hints = true;
@ -48,5 +53,51 @@
}; };
}; };
}; };
languages = {
language-server = {
rust-analyzer = {
config = {
checkOnSave.command = "clippy";
cargo.features = "all";
cargo.unsetTest = [];
};
};
pyright = {
command = "${pkgs.pyright}/bin/pyright-langserver";
args = ["--stdio"];
config = {};
};
nil.command = "${pkgs.nil}/bin/nil";
bash-language-server = {
command = "${pkgs.bash-language-server}/bin/bash-language-server";
args = ["start"];
};
};
language = [
{
name = "python";
auto-format = true;
language-servers = [{name = "pyright";}];
formatter = {
command = "/bin/sh";
args = [
"-c"
"${pkgs.isort}/bin/isort - | ${pkgs.black}/bin/black -q -l 120 -C -"
];
};
}
{
name = "nix";
auto-format = true;
language-servers = [{name = "nil";}];
formatter = {
command = lib.getExe pkgs.nixfmt-rfc-style;
args = ["-s"];
};
}
];
};
}; };
} }

View file

@ -1,20 +1,23 @@
{lib, config, ... }: { {
lib,
config,
...
}: {
data = { data = {
directories = [ directories = [
".config/syncthing" ".config/syncthing"
".config/sops" ".config/sops"
".config/keepassxc" ".config/keepassxc"
".config/obsidian"
".config/vesktop" ".config/vesktop"
".gnupg" ".gnupg"
".ssh" ".ssh"
".thunderbird" ".thunderbird"
".mozilla" ".mozilla"
".zen"
"nixos" "nixos"
"sync" "sync"
"obsidian"
"code" "code"
".keepass" ".keepass"
".local/share/PrismLauncher" ".local/share/PrismLauncher"
@ -28,11 +31,9 @@
cache = { cache = {
directories = [ directories = [
".cache/nix" ".cache/nix"
".cache/spotify"
".cache/keepassxc" ".cache/keepassxc"
".cargo" ".cargo"
".local/state/wireplumber" ".local/state/wireplumber"
"tmp"
]; ];
files = []; files = [];
}; };

View file

@ -3,5 +3,4 @@
./core ./core
./optional ./optional
]; ];
# system.stateVersion = "24.11";
} }