setup just

This commit is contained in:
♥ Minnie ♥ 2025-03-23 20:41:04 +08:00
parent bbd6f04fe4
commit 5db1410be6
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 20 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use_nix

View file

@ -28,7 +28,6 @@
la = "ls -a";
ll = "ls -l";
tt = "wezterm cli set-tab-title ";
deploy-viridian = "nixos-rebuild switch --flake .#viridian --target-host viridian --use-remote-sudo";
mount-backup = "sshfs viridian:/srv/shares/sajenim /home/sajenim/.backup";
mount-turing = "sshfs turing:/home/jwils254 /home/sajenim/.turing";
};

12
justfile Normal file
View file

@ -0,0 +1,12 @@
default:
@just --list
build *ARGS:
nixos-rebuild build --flake .#{{ARGS}}
switch *ARGS:
sudo nixos-rebuild switch --flake .#{{ARGS}}
deploy *ARGS:
nixos-rebuild switch --flake .#{{ARGS}} --target-host {{ARGS}} --use-remote-sudo

7
shell.nix Normal file
View file

@ -0,0 +1,7 @@
{pkgs ? import <nixpkgs> {}, ...}: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
just
];
};
}