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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1781454065, "lastModified": 1781454065,
@@ -827,6 +847,7 @@
"hardware": "hardware", "hardware": "hardware",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_7",
"noctalia": "noctalia", "noctalia": "noctalia",
"nvchad-starter": "nvchad-starter", "nvchad-starter": "nvchad-starter",
+9 -3
View File
@@ -42,6 +42,10 @@
}; };
spicetify-nix.url = "github:Gerg-L/spicetify-nix"; spicetify-nix.url = "github:Gerg-L/spicetify-nix";
claude-code.url = "github:sadjow/claude-code-nix"; claude-code.url = "github:sadjow/claude-code-nix";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@@ -94,12 +98,14 @@
{ {
nixosConfigurations = { nixosConfigurations = {
arrakis = mkNixOS "arrakis"; 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 = { homeConfigurations = {
arrakis = mkHome "arrakis" x86; "naps62@arrakis" = mkHome "arrakis" x86;
desktop = mkHome "desktop" x86; "naps62@konishi" = mkHome "konishi" x86;
}; };
devShells = devShells =
+1
View File
@@ -8,6 +8,7 @@
imports = [ imports = [
../features/mutable-file.nix ../features/mutable-file.nix
./zsh.nix ./zsh.nix
./nix.nix
./neovim ./neovim
./rust.nix ./rust.nix
./elixir.nix ./elixir.nix
+5
View File
@@ -52,5 +52,10 @@
kicad kicad
tea tea
just # project command runner
lazydocker # docker TUI
dust # du replacement
duf # df replacement
]; ];
} }
+4
View File
@@ -31,6 +31,9 @@
rb = "rebase"; rb = "rebase";
rbc = "rebase --continue"; rbc = "rebase --continue";
w = "commit -am 'wip'"; 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 = { init = {
defaultBranch = "main"; defaultBranch = "main";
@@ -70,6 +73,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
delta delta
difftastic
git-crypt git-crypt
mediainfo mediainfo
tea 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"; ls = "eza";
cat = "bat"; cat = "bat";
ps = "procs"; ps = "procs";
j = "just";
lzd = "lazydocker";
open = "xdg-open"; open = "xdg-open";
o = "xdg-open"; o = "xdg-open";
s = "ssh"; s = "ssh";
@@ -76,6 +78,25 @@
enableZshIntegration = true; 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 = { programs.starship = {
enable = true; enable = true;
settings = { settings = {
+15 -3
View File
@@ -18,10 +18,22 @@
]; ];
warn-dirty = false; warn-dirty = false;
}; };
gc = { # GC is handled by `nh clean` below (keep-N / keep-since semantics).
automatic = true; # The two are mutually exclusive — nh asserts if nix.gc.automatic is on.
options = "--delete-older-than 30d"; 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; nixpkgs.config.allowUnfree = true;
} }