galanthus: Add nh

This commit is contained in:
Jan Kremer 2026-01-14 20:32:49 +01:00
parent adac75f35f
commit ac702e95f2
No known key found for this signature in database
2 changed files with 16 additions and 3 deletions

View file

@ -1,4 +1,9 @@
{ inputs, pkgs, ... }:
{
inputs,
pkgs,
config,
...
}:
{
imports = [
inputs.agenix.nixosModules.default
@ -52,6 +57,15 @@
enable = true;
enableSSHSupport = true;
};
nh = {
enable = true;
# clean = { ## nix.gc already handles this
# enable = true;
# extraArgs = "--keep-since 4d --keep 3";
# };
flake = "${config.users.users.jan.home}/.config/nix";
};
};
environment.systemPackages = [

View file

@ -7,8 +7,7 @@
];
home.shellAliases = {
"deploy" =
"ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; sudo nixos-rebuild switch --flake ~/.config/nix'";
"deploy" = "ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; nh os switch'";
"mv" = "mv -i";
"rm" = "trash";
"tree" = "lt";