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.people) user0;
inherit (flake.config.machines) devices; inherit (flake.config.machines) devices;
inherit (flake.config.people.users.${user0}) name paths; inherit (flake.config.people.users.${user0}) name paths;
hostname = config.networking.hostName; hostname = config.networking.hostName;
in in
{ {
@ -47,7 +48,13 @@ in
username = user0; username = user0;
homeDirectory = "/home/${user0}"; homeDirectory = "/home/${user0}";
file = { file = {
"./justfile" = { "./justfile" =
let
mars = devices.mars;
deimos = devices.deimos;
deviceLogic = if hostname == mars.name then deimos else mars;
in
{
text = '' text = ''
vpn: vpn:
sudo protonvpn c --c CA sudo protonvpn c --c CA
@ -58,11 +65,17 @@ in
rebuild: rebuild:
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
update:
nix flake update --flake ~/Files/Projects/dotfiles
elm: elm:
cd ~/Files/Projects/website/frontend ; elm-land server cd ~/Files/Projects/website/frontend ; elm-land server
server: server:
ssh ${devices.ceres.ip.address0} ssh ${devices.ceres.ip.address0}
${deviceLogic.name}:
ssh ${deviceLogic.ip.address0}
''; '';
}; };
"./Files/Scripts/list.sh" = { "./Files/Scripts/list.sh" = {