diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a4726a --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/home-manager/sajenim/features/cli/zsh.nix b/home-manager/sajenim/features/cli/zsh.nix index 25fd98c..82f42fc 100644 --- a/home-manager/sajenim/features/cli/zsh.nix +++ b/home-manager/sajenim/features/cli/zsh.nix @@ -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"; }; diff --git a/justfile b/justfile new file mode 100644 index 0000000..2d134f6 --- /dev/null +++ b/justfile @@ -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 + diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6ca4331 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{pkgs ? import {}, ...}: { + default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + just + ]; + }; +}