setup just
This commit is contained in:
parent
bbd6f04fe4
commit
5db1410be6
4 changed files with 20 additions and 1 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use_nix
|
|
@ -28,7 +28,6 @@
|
||||||
la = "ls -a";
|
la = "ls -a";
|
||||||
ll = "ls -l";
|
ll = "ls -l";
|
||||||
tt = "wezterm cli set-tab-title ";
|
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-backup = "sshfs viridian:/srv/shares/sajenim /home/sajenim/.backup";
|
||||||
mount-turing = "sshfs turing:/home/jwils254 /home/sajenim/.turing";
|
mount-turing = "sshfs turing:/home/jwils254 /home/sajenim/.turing";
|
||||||
};
|
};
|
||||||
|
|
12
justfile
Normal file
12
justfile
Normal 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
7
shell.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{pkgs ? import <nixpkgs> {}, ...}: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
just
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue