feat: updated justfile

This commit is contained in:
Nick 2025-03-31 19:13:24 -05:00
parent 4e869e2a39
commit 9fdc5cf160

View file

@ -10,6 +10,7 @@ let
inherit (flake.config.people) user0;
inherit (flake.config.machines) devices;
inherit (flake.config.people.users.${user0}) name paths;
hostname = config.networking.hostName;
in
{
@ -47,24 +48,36 @@ in
username = user0;
homeDirectory = "/home/${user0}";
file = {
"./justfile" = {
text = ''
vpn:
sudo protonvpn c --c CA
"./justfile" =
let
mars = devices.mars;
deimos = devices.deimos;
deviceLogic = if hostname == mars.name then deimos else mars;
in
{
text = ''
vpn:
sudo protonvpn c --c CA
vpnoff:
sudo protonvpn d
vpnoff:
sudo protonvpn d
rebuild:
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
rebuild:
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
elm:
cd ~/Files/Projects/website/frontend ; elm-land server
update:
nix flake update --flake ~/Files/Projects/dotfiles
server:
ssh ${devices.ceres.ip.address0}
'';
};
elm:
cd ~/Files/Projects/website/frontend ; elm-land server
server:
ssh ${devices.ceres.ip.address0}
${deviceLogic.name}:
ssh ${deviceLogic.ip.address0}
'';
};
"./Files/Scripts/list.sh" = {
source = ./files/list.sh;
executable = true;