Compare commits

..

No commits in common. "3c314ad5bd22b9d9e0e006d38a83db529282578c" and "f2a6dee6697016b82d44493d39f0128d9a267f07" have entirely different histories.

6 changed files with 13 additions and 26 deletions

View file

@ -11,8 +11,8 @@ My personal NixOS and home-manager configurations.
```sh ```sh
nix develop nix develop
just nixos # Rebuild and switch the current NixOS system on this host just deploy-nixos # Rebuild and switch the current NixOS system on this host
just home # Apply Home Manager configuration for the current user just deploy-home # Apply Home Manager configuration for the current user
just vps # Rebuild and switch NixOS on the remote VPS just deploy-vps # Rebuild and switch NixOS on the remote VPS
``` ```

View file

@ -90,7 +90,6 @@
pkgs.git pkgs.git
pkgs.git-crypt pkgs.git-crypt
pkgs.just pkgs.just
pkgs.nh
]; ];
}; };
} }

View file

@ -10,6 +10,5 @@
./ydotool.nix ./ydotool.nix
./steam.nix ./steam.nix
./nix-ld.nix ./nix-ld.nix
./nh.nix
]; ];
} }

View file

@ -1,8 +0,0 @@
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 7d --keep 3";
flake = "/home/toast/nix-config";
};
}

View file

@ -3,20 +3,19 @@
default: default:
@just --list @just --list
_check-nh: deploy-nixos:
@command -v nh > /dev/null 2>&1 || echo "nh is not in PATH. Run 'nix develop' first." sudo nixos-rebuild switch --flake .#$(hostname)
nixos: _check-nh deploy-vps:
nh os switch . nixos-rebuild switch --flake .#vps --target-host root@vps
vps: _check-nh deploy-home:
nh os switch . -H vps --target-host root@vps home-manager switch --flake .#$USER@$(hostname)
home: _check-nh
nh home switch .
update: update:
nix flake update --commit-lock-file nix flake update --commit-lock-file
gc: _check-nh gc:
nh clean all --keep-since 7d nix-collect-garbage -d
nix-collect-garbage --delete-older-than 7d
nix-store --gc

View file

@ -7,7 +7,5 @@ pkgs.mkShell {
git git
sops sops
git-crypt git-crypt
just
nh
]; ];
} }