a few more additions

This commit is contained in:
Miguel Palhas
2026-06-27 14:16:30 +01:00
parent 559edbe89a
commit 4eeef628b0
12 changed files with 94 additions and 6 deletions
Generated
+21
View File
@@ -584,6 +584,26 @@
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1782030356,
"narHash": "sha256-h4WpMr455AfRub0FXBaon6Vcpe0waUyJ4GivIW6oyd4=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "3017088b49efd404f78e3b104f553b97e4af786b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1781454065,
@@ -827,6 +847,7 @@
"hardware": "hardware",
"home-manager": "home-manager",
"hyprland": "hyprland",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_7",
"noctalia": "noctalia",
"nvchad-starter": "nvchad-starter",
+9 -3
View File
@@ -42,6 +42,10 @@
};
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
claude-code.url = "github:sadjow/claude-code-nix";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@@ -94,12 +98,14 @@
{
nixosConfigurations = {
arrakis = mkNixOS "arrakis";
desktop = mkNixOS "desktop";
konishi = mkNixOS "konishi";
};
# Named "<user>@<host>" so `nh home switch` auto-detects them
# (nh home tries "$USER@$(hostname)", not the bare hostname).
homeConfigurations = {
arrakis = mkHome "arrakis" x86;
desktop = mkHome "desktop" x86;
"naps62@arrakis" = mkHome "arrakis" x86;
"naps62@konishi" = mkHome "konishi" x86;
};
devShells =
+1
View File
@@ -8,6 +8,7 @@
imports = [
../features/mutable-file.nix
./zsh.nix
./nix.nix
./neovim
./rust.nix
./elixir.nix
+5
View File
@@ -52,5 +52,10 @@
kicad
tea
just # project command runner
lazydocker # docker TUI
dust # du replacement
duf # df replacement
];
}
+4
View File
@@ -31,6 +31,9 @@
rb = "rebase";
rbc = "rebase --continue";
w = "commit -am 'wip'";
# Structural (AST-aware) diff on demand; `git d`/`diff` stays delta.
# Accepts args, e.g. `git dft HEAD~3`.
dft = "!GIT_EXTERNAL_DIFF=difft git diff";
};
init = {
defaultBranch = "main";
@@ -70,6 +73,7 @@
home.packages = with pkgs; [
delta
difftastic
git-crypt
mediainfo
tea
+18
View File
@@ -0,0 +1,18 @@
{ pkgs, inputs, ... }:
{
imports = [
# Prebuilt, weekly-updated nix-index database (backs `comma`).
inputs.nix-index-database.homeModules.nix-index
];
# `comma` (`,`) — run any nixpkgs program once without installing it.
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
home.packages = with pkgs; [
nvd # version diff between generations (used by nh)
nix-output-monitor # readable build output (nom; used by nh)
statix # nix linter / antipattern finder
deadnix # finds unused nix bindings
];
}
+21
View File
@@ -22,6 +22,8 @@
ls = "eza";
cat = "bat";
ps = "procs";
j = "just";
lzd = "lazydocker";
open = "xdg-open";
o = "xdg-open";
s = "ssh";
@@ -76,6 +78,25 @@
enableZshIntegration = true;
};
programs.zoxide = {
enable = true;
enableZshIntegration = true;
# Replace `cd` with zoxide: `cd` = smart jump, `cdi` = interactive picker.
options = [ "--cmd cd" ];
};
programs.atuin = {
enable = true;
enableZshIntegration = true;
# Local-only history (no account/sync). Atuin owns Ctrl-R; leave the
# up-arrow as normal zsh prefix history.
flags = [ "--disable-up-arrow" ];
settings = {
auto_sync = false;
update_check = false;
};
};
programs.starship = {
enable = true;
settings = {
+15 -3
View File
@@ -18,10 +18,22 @@
];
warn-dirty = false;
};
gc = {
automatic = true;
options = "--delete-older-than 30d";
# GC is handled by `nh clean` below (keep-N / keep-since semantics).
# The two are mutually exclusive — nh asserts if nix.gc.automatic is on.
gc.automatic = false;
};
# nh: ergonomic nixos-rebuild wrapper. Auto-detects the target from the
# machine hostname (configs are named to match), so `nh os switch` needs
# no host arg. Runs as root, so its `clean` prunes system + user profiles.
programs.nh = {
enable = true;
flake = "/home/naps62/projects/nixos-config";
clean = {
enable = true;
extraArgs = "--keep 10 --keep-since 7d";
};
};
nixpkgs.config.allowUnfree = true;
}