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 = [
|
imports = [
|
||||||
inputs.agenix.nixosModules.default
|
inputs.agenix.nixosModules.default
|
||||||
|
|
@ -52,6 +57,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = 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 = [
|
environment.systemPackages = [
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
"deploy" =
|
"deploy" = "ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; nh os switch'";
|
||||||
"ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; sudo nixos-rebuild switch --flake ~/.config/nix'";
|
|
||||||
"mv" = "mv -i";
|
"mv" = "mv -i";
|
||||||
"rm" = "trash";
|
"rm" = "trash";
|
||||||
"tree" = "lt";
|
"tree" = "lt";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue