diff options
Diffstat (limited to 'home')
| -rw-r--r-- | home/default.nix | 65 | ||||
| -rw-r--r-- | home/goose.nix | 4 | ||||
| -rw-r--r-- | home/nushell.nix | 2 | ||||
| -rw-r--r-- | home/nvim/default.nix | 7 | ||||
| -rw-r--r-- | home/nvim/lsp.lua | 3 | ||||
| -rw-r--r-- | home/nvim/plugins/treesitter.lua | 3 | ||||
| -rw-r--r-- | home/wallpapers/default.nix | 3 |
7 files changed, 67 insertions, 20 deletions
diff --git a/home/default.nix b/home/default.nix index e20e483..e8b74a9 100644 --- a/home/default.nix +++ b/home/default.nix @@ -3,6 +3,7 @@ config, vars, pkgs, + lib, ... }: let @@ -24,7 +25,6 @@ in ./firefox.nix ./fish.nix ./git.nix - ./goose.nix ./hyprland.nix ./hyprlock.nix ./mail @@ -42,15 +42,23 @@ in ./zaread.nix ]; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + home = { + activation.mySymlinks = lib.mkAfter '' + ln -sf /media/skydrive/Downloads /home/petri/Downloads; + ''; file = { ".cache/nix-index/.keep".text = ""; "Calendar/radicale/.keep".text = ""; "Contacts/radicale/.keep".text = ""; - Downloads.source = config.lib.file.mkOutOfStoreSymlink "/media/skydrive/Downloads"; }; enableNixpkgsReleaseCheck = true; - stateVersion = "25.05"; + stateVersion = "25.11"; shell = { enableBashIntegration = true; enableFishIntegration = true; @@ -64,8 +72,13 @@ in CARGO_REGISTRIES_RELESOFT_IO_PROTOCOL = "sparse"; CARGO_REGISTRIES_RELESOFT_TOKEN = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.relesoft_cargo_token.path})"; CC = "clang"; + CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1"; CURSOR_SIZE = "16"; DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox"; + DISABLE_AUTOUPDATER = "1"; + DISABLE_BUG_COMMAND = "1"; + DISABLE_ERROR_REPORTING = "1"; + DISABLE_TELEMETRY = "1"; ELECTRON_OZONE_PLATFORM_HINT = "auto"; GDK_SCALE = "1"; MOZ_USE_XINPUT2 = "1"; @@ -141,7 +154,9 @@ in # cli-tools appimage-run attic-client # nix cache client + bat # cat but with extra features brightnessctl + cargo # rust project manager cloc # count llines of code dmidecode # memory information espflash # ESP32 flasher @@ -150,7 +165,6 @@ in file # show the type of file font-awesome # icons forgejo-cli # forgejo-cli - gat # cat but with extra features grim # screen capture inxi # system innformation jq # commandline json parser @@ -169,10 +183,6 @@ in slurp # screen are capture sqlite # simple database timg # show image in shell - unstable.goose-cli # llm cli - unstable.vale # spellcheck - unstable.valeStyles.microsoft # spellcheck linters - unstable.valeStyles.write-good # spellcheck linters whisper-cpp # tts wlogout # logout helper xdg-utils @@ -188,11 +198,9 @@ in couchbase-shell # couchbase d2 # graphs gnumake # makefile - lean4 # theorem prover - broken + lean4 # theorem prover lld # c and rust linker nodePackages.jsdoc # javascript documentation - unstable.go - unstable.golint # linter for go uv # python package installer ]; }; @@ -258,6 +266,25 @@ in }; programs = { + claude-code = { + enable = true; + package = unstable.claude-code; + }; + tex-fmt = { + enable = true; + settings = { + wrap = false; + tabchar = "tab"; + tabsize = 1; + }; + }; + go = { + enable = true; + telemetry.mode = "off"; + env = { + CC = "clang"; + }; + }; obsidian = { enable = true; defaultSettings.app = { @@ -320,6 +347,17 @@ in television = { enable = true; enableFishIntegration = true; + settings = { + preview = { + command = "${pkgs.bat}/bin/bat --style=numbers --color=always {}"; + }; + ui = { + use_nerd_font_icons = true; + }; + search = { + command = "${pkgs.ripgrep}/bin/rg"; + }; + }; }; zathura = { enable = true; @@ -484,6 +522,9 @@ in ssh = { enableDefaultConfig = false; enable = true; + matchBlocks."relesoft.io" = { + hostname = "65.21.238.221"; + }; matchBlocks."*" = { compression = true; controlMaster = "auto"; @@ -579,7 +620,7 @@ in nvim = { categories = [ ]; comment = "A text editor"; - exec = ''${pkgs.neovim}/bin/nvim''; + exec = "${pkgs.neovim}/bin/nvim"; genericName = "Editor"; name = "nvim"; terminal = true; diff --git a/home/goose.nix b/home/goose.nix index a277866..115386d 100644 --- a/home/goose.nix +++ b/home/goose.nix @@ -1,7 +1,7 @@ -{ config, pkgs, ... }: +{ pkgs, ... }: { xdg.configFile."goose/config.yaml".source = (pkgs.formats.yaml { }).generate "goose-config" { - GOOSE_DISABLE_KEYRING = "true"; + GOOSE_DISABLE_KEYRING = true; GOOSE_MODE = "auto"; GOOSE_MODEL = "gpt-4.1-mini"; GOOSE_PROVIDER = "openai"; diff --git a/home/nushell.nix b/home/nushell.nix index b86625f..99f9fbb 100644 --- a/home/nushell.nix +++ b/home/nushell.nix @@ -19,7 +19,7 @@ wifi = "${pkgs.impala}/bin/impala"; youtube = "${pkgs.pipe-viewer}/bin/pipe-viewer"; }; - extraEnv = ''''; + extraEnv = ""; extraConfig = '' def ns [] { ${pkgs.nix-search-tv}/bin/nix-search-tv print | ${pkgs.fzf}/bin/fzf --preview "${pkgs.nix-search-tv}/bin/nix-search-tv preview {}" --scheme history diff --git a/home/nvim/default.nix b/home/nvim/default.nix index 0c1a32a..efb19b4 100644 --- a/home/nvim/default.nix +++ b/home/nvim/default.nix @@ -30,8 +30,8 @@ # LSP biome # javascript, biome - clippy # rust error checking clang-tools # C + clippy # rust error checking dprint # format engine for multiple langeuages dprint-plugins.dprint-plugin-markdown # markdown dprint-plugins.dprint-plugin-toml # toml @@ -47,11 +47,14 @@ nodePackages.typescript-language-server # javascript validation ruff # python format and lint rust-analyzer - tex-fmt # latex + tex-fmt # latex fmt texlab # latex lsp tree-sitter # generate tree-sitter grammars ty # python type checker written in rust + vale # spellcheck vale-ls # prose (md, asciidoc) + valeStyles.microsoft # spellcheck linters + valeStyles.write-good # spellcheck linters ]; extraPython3Packages = ps: [ diff --git a/home/nvim/lsp.lua b/home/nvim/lsp.lua index 2b8a730..7e124bd 100644 --- a/home/nvim/lsp.lua +++ b/home/nvim/lsp.lua @@ -214,7 +214,7 @@ vim.lsp.config("clangd", { vim.lsp.config("vale_ls", { cmd = { "vale-ls" }, - filetypes = { "markdown", "text", "tex", "rst", "adoc", "asciidoc" }, + filetypes = { "markdown", "text", "tex", "rst", "adoc", "asciidoc", "html" }, root_markers = { ".vale.ini" }, }) @@ -289,6 +289,7 @@ vim.lsp.config("bashls", { vim.lsp.config("texlab", { cmd = { "texlab" }, filetypes = { "tex", "plaintex", "bib" }, + latexFormatter = "tex-fmt" }) vim.lsp.enable({ diff --git a/home/nvim/plugins/treesitter.lua b/home/nvim/plugins/treesitter.lua index c408901..7f470b0 100644 --- a/home/nvim/plugins/treesitter.lua +++ b/home/nvim/plugins/treesitter.lua @@ -9,4 +9,7 @@ require "nvim-treesitter".setup { max_file_lines = 2000, }, additional_vim_regex_highlighting = false, + indent = { + enable = true, + }, } diff --git a/home/wallpapers/default.nix b/home/wallpapers/default.nix index 5203cff..a358a70 100644 --- a/home/wallpapers/default.nix +++ b/home/wallpapers/default.nix @@ -60,6 +60,7 @@ in systemd.user.services."wallpaper-fetch" = { Unit = { Description = "Fetch and update 4K nature wallpaper for Hyprpaper"; + After = [ "graphical-session.target" ]; }; Service = { LoadCredential = [ "login_token:${config.age.secrets.unsplash_access_key.path}" ]; @@ -72,8 +73,6 @@ in systemd.user.timers."wallpaper-fetch" = { Unit = { Description = "Periodic Unsplash wallpaper fetch timer"; - After = [ "graphical-session.target" ]; - Wants = [ "network-online.target" ]; }; Timer = { OnBootSec = "2min"; |
