just push
This commit is contained in:
parent
0f4374d4f5
commit
0b7bef124d
|
@ -288,7 +288,6 @@
|
|||
nixosModules = mkHosts (mkModule []);
|
||||
nixosConfigurations = mkHosts (mkConfig []);
|
||||
nixosReports = mkHosts (mkReport []);
|
||||
nixosHostnames = builtins.attrNames self.nixosReports; # faster to eval
|
||||
|
||||
packages = forAllSystems ({ inputs, pkgs, lib, flakes, ... }: let
|
||||
mk-nspawn-deployer = hostname: # TODO: nspawn-tarball.nix populates /etc/nixos with junk
|
||||
|
|
|
@ -27,6 +27,16 @@
|
|||
# Networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
networking.nameservers = [
|
||||
"2001:700:1:11::2:51" # dns64.uninett.no
|
||||
#"129.241.0.200"
|
||||
#"129.241.0.201"
|
||||
#"2001:700:300::200"
|
||||
#"2001:700:300::201"
|
||||
];
|
||||
|
||||
networking.networkmanager.insertNameservers = config.networking.nameservers; # wtf
|
||||
|
||||
# TODO: remove? Move?
|
||||
programs.dconf.enable = true;
|
||||
}
|
||||
|
|
7
justfile
7
justfile
|
@ -32,8 +32,11 @@ switch:
|
|||
boot:
|
||||
sudo nixos-rebuild boot --flake .
|
||||
|
||||
push hostname=`just _a-host` cmd=`gum choose test switch boot --header "Select mode..."`:
|
||||
nixos-rebuild --flake .#{{hostname}} --target-host root@$(nix eval .#nixosReports.{{hostname}}.fqdn --json | jq . -r) --use-substitutes {{cmd}}
|
||||
|
||||
@_a-host:
|
||||
nix eval .#nixosHostnames --json 2>/dev/null | jq '.[]' -r | gum filter --placeholder "Pick a host..."
|
||||
nix eval .#nixosReports --apply builtins.attrNames --json 2>/dev/null | jq '.[]' -r | gum filter --placeholder "Pick a host..."
|
||||
|
||||
@remote-current:
|
||||
>&2 echo Current remote: $(remote-host)
|
||||
|
@ -50,8 +53,6 @@ boot:
|
|||
@remote-set remote=`just remote-current && just _a-remote-label`:
|
||||
remote-set {{remote}}
|
||||
|
||||
# nixos-rebuild --flake .#<host> --target-host root@<host>.nixos.org --use-substitutes switch
|
||||
|
||||
@gorgon:
|
||||
# https://codeberg.org/gorgon/gorgon/src/branch/main/nix-web
|
||||
# https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762
|
||||
|
|
Loading…
Reference in New Issue