galanthus: Add nh
This commit is contained in:
parent
adac75f35f
commit
ac702e95f2
2 changed files with 16 additions and 3 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue