228 current 2025-01-11 06:21:44 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-11 06:21:54 -05:00
parent 1137286591
commit 7e54137529
3 changed files with 6 additions and 1 deletions

View File

@@ -144,6 +144,10 @@ in {
command = "/home/synchronous/.scripts/nixos-rebuild.sh"; command = "/home/synchronous/.scripts/nixos-rebuild.sh";
options = ["NOPASSWD"]; options = ["NOPASSWD"];
} }
{
command = "/run/current-system/sw/bin/nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix";
options = ["NOPASSWD"];
}
]; ];
users = ["synchronous"]; users = ["synchronous"];
} }

View File

@@ -100,6 +100,7 @@
p.typescript p.typescript
p.vue p.vue
p.yaml p.yaml
p.agda
]); ]);
config = toLuaFile ./plugins/treesitter.lua; config = toLuaFile ./plugins/treesitter.lua;
} }

View File

@@ -33,7 +33,7 @@ echo ""
echo "NixOS Rebuilding..." echo "NixOS Rebuilding..."
# Rebuild, output simplified errors, log trackebacks # Rebuild, output simplified errors, log trackebacks
sudo nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix &> /tmp/nixos-switch.log sudo /run/current-system/sw/bin/nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix &> /tmp/nixos-switch.log
# cat /tmp/nixos-switch.log | grep --color error && exit 1 # cat /tmp/nixos-switch.log | grep --color error && exit 1
if grep --color error /tmp/nixos-switch.log; then if grep --color error /tmp/nixos-switch.log; then