mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 09:35:12 -05:00
feat: updated justfile
This commit is contained in:
parent
4e869e2a39
commit
9fdc5cf160
1 changed files with 27 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue