aboutsummaryrefslogtreecommitdiffstats
path: root/home/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/default.nix65
1 files changed, 53 insertions, 12 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;