phantom: add script to update, fmt
This commit is contained in:
parent
d0dd646246
commit
68a7125822
|
@ -13,7 +13,8 @@ let
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"2606:4700:4700::1111"
|
"2606:4700:4700::1111"
|
||||||
];
|
];
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
networking.nameservers = mkDefault nameservers;
|
networking.nameservers = mkDefault nameservers;
|
||||||
services.resolved = mkDefault { fallbackDns = nameservers; };
|
services.resolved = mkDefault { fallbackDns = nameservers; };
|
||||||
networking.dhcpcd.extraConfig = "noipv4ll";
|
networking.dhcpcd.extraConfig = "noipv4ll";
|
||||||
|
@ -21,7 +22,7 @@ in {
|
||||||
systemd.services.systemd-sysctl.enable = false;
|
systemd.services.systemd-sysctl.enable = false;
|
||||||
systemd.services.systemd-oomd.enable = false;
|
systemd.services.systemd-oomd.enable = false;
|
||||||
systemd.sockets."systemd-journald-audit".enable = false;
|
systemd.sockets."systemd-journald-audit".enable = false;
|
||||||
systemd.mounts = [ {where = "/sys/kernel/debug"; enable = false;} ];
|
systemd.mounts = [{ where = "/sys/kernel/debug"; enable = false; }];
|
||||||
systemd.services.rpc-gssd.enable = false;
|
systemd.services.rpc-gssd.enable = false;
|
||||||
|
|
||||||
# Due to our restrictions in /sys, the default systemd-udev-trigger fails
|
# Due to our restrictions in /sys, the default systemd-udev-trigger fails
|
||||||
|
|
12
switch-phantom
Executable file
12
switch-phantom
Executable 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 \
|
||||||
|
"$@"
|
Loading…
Reference in a new issue