mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45: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.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,24 +48,36 @@ in
|
||||||
username = user0;
|
username = user0;
|
||||||
homeDirectory = "/home/${user0}";
|
homeDirectory = "/home/${user0}";
|
||||||
file = {
|
file = {
|
||||||
"./justfile" = {
|
"./justfile" =
|
||||||
text = ''
|
let
|
||||||
vpn:
|
mars = devices.mars;
|
||||||
sudo protonvpn c --c CA
|
deimos = devices.deimos;
|
||||||
|
deviceLogic = if hostname == mars.name then deimos else mars;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
text = ''
|
||||||
|
vpn:
|
||||||
|
sudo protonvpn c --c CA
|
||||||
|
|
||||||
vpnoff:
|
vpnoff:
|
||||||
sudo protonvpn d
|
sudo protonvpn d
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
elm:
|
update:
|
||||||
cd ~/Files/Projects/website/frontend ; elm-land server
|
nix flake update --flake ~/Files/Projects/dotfiles
|
||||||
|
|
||||||
server:
|
elm:
|
||||||
ssh ${devices.ceres.ip.address0}
|
cd ~/Files/Projects/website/frontend ; elm-land server
|
||||||
'';
|
|
||||||
};
|
server:
|
||||||
|
ssh ${devices.ceres.ip.address0}
|
||||||
|
|
||||||
|
${deviceLogic.name}:
|
||||||
|
ssh ${deviceLogic.ip.address0}
|
||||||
|
'';
|
||||||
|
};
|
||||||
"./Files/Scripts/list.sh" = {
|
"./Files/Scripts/list.sh" = {
|
||||||
source = ./files/list.sh;
|
source = ./files/list.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue