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 = [
sops-nix.homeManagerModules.sops

View file

@ -1,5 +1,6 @@
{
pkgs,
lib,
...
}: {
programs.helix = {
@ -31,6 +32,10 @@
];
separator = "|";
};
inline-diagnostics = {
cursor-line = "hint";
other-lines = "warning";
};
lsp = {
display-messages = 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 = {
directories = [
".config/syncthing"
".config/sops"
".config/keepassxc"
".config/obsidian"
".config/vesktop"
".gnupg"
".ssh"
".thunderbird"
".mozilla"
".zen"
"nixos"
"sync"
"obsidian"
"code"
".keepass"
".local/share/PrismLauncher"
@ -28,11 +31,9 @@
cache = {
directories = [
".cache/nix"
".cache/spotify"
".cache/keepassxc"
".cargo"
".local/state/wireplumber"
"tmp"
];
files = [];
};