phantom: add script to update, fmt

This commit is contained in:
Leonardo Eugênio 2024-04-06 20:44:20 -03:00
parent d0dd646246
commit 68a7125822
2 changed files with 15 additions and 2 deletions

View file

@ -13,7 +13,8 @@ let
"1.1.1.1"
"2606:4700:4700::1111"
];
in {
in
{
networking.nameservers = mkDefault nameservers;
services.resolved = mkDefault { fallbackDns = nameservers; };
networking.dhcpcd.extraConfig = "noipv4ll";

12
switch-phantom Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
nix fmt
git diff
nixos-rebuild switch --flake .#phantom \
--update-input nixpkgs \
--no-write-lock-file \
--build-host phantom \
--target-host phantom \
"$@"