diff --git a/os/linux/nixos/inst/auto-determinate/cli.txt b/os/linux/nixos/inst/auto-determinate/cli.txt new file mode 100644 index 000000000..fba2a2133 --- /dev/null +++ b/os/linux/nixos/inst/auto-determinate/cli.txt @@ -0,0 +1,56 @@ +# If you need an offline install, or you'd prefer to run the binary directly, head to +# https://github.com/DeterminateSystems/nix-installer/releases then pick the version and platform +# most appropriate for your deployment target. + +info: downloading installer https://install.determinate.systems/nix/tag/v0.17.0/nix-installer-x86_64-linux + +/nix/nix-installer + help Print this message or the help of the given subcommand(s) + install Install Nix using a plannerCommands: + plans: + linux A planner for traditional, mutable Linux systems like Debian, RHEL, or Arch + --init + Which init system to configure (if `--init none` Nix will be root-only) + [env: NIX_INSTALLER_INIT=] + [default: systemd] + [possible values: none, systemd] + --no-start-daemon + Start the daemon (if not `--init none`) + [env: NIX_INSTALLER_START_DAEMON=] + steam-deck A planner for the Valve Steam Deck running SteamOS + ostree A planner suitable for immutable systems using ostree, such as Fedora Silverblue + help Print this message or the help of the given subcommand(s) + + --no-confirm + [env: NIX_INSTALLER_NO_CONFIRM=] + --no-modify-profile + Modify the user profile to automatically load nix + [env: NIX_INSTALLER_MODIFY_PROFILE=] + --extra-conf [...] + Extra configuration lines for `/etc/nix.conf` + [env: NIX_INSTALLER_EXTRA_CONF=] + --explain + [env: NIX_INSTALLER_EXPLAIN=] + repair Update the shell profiles to make Nix usable after system upgrades + uninstall Uninstall a previously `nix-installer` installed Nix + self-test Run a self test of Nix to ensure that an install is working + plan Emit a JSON install plan that can be manually edited before execution + +options + -v, --verbose... + Enable debug logs, -vv for trace + + [env: NIX_INSTALLER_VERBOSITY=] + --logger + Which logger to use + + [env: NIX_INSTALLER_LOGGER=] + [default: compact] + [possible values: compact, full, pretty, json] + --log-directive [...] + Tracing directives + See https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives + + [env: NIX_INSTALLER_LOG_DIRECTIVES=] + +sudo -i nix upgrade-nix diff --git a/os/linux/nixos/inst/auto-determinate/nix-installer.txt b/os/linux/nixos/inst/auto-determinate/nix-installer.txt index e44647e12..38f28c113 100644 --- a/os/linux/nixos/inst/auto-determinate/nix-installer.txt +++ b/os/linux/nixos/inst/auto-determinate/nix-installer.txt @@ -1,26 +1,9 @@ https://github.com/DeterminateSystems/nix-installer - ! not a nixos + ! not a nixos, just plain nix curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install PATH=...:~/.nix-profile/bin:/nix/var/nix/profiles/default/bin -https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/mod.rs -https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/common/configure_nix.rs -https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/common/configure_shell_profile.rs -https://github.com/DeterminateSystems/nix-installer/blob/main/src/planner/macos.rs - launchd - ShellProfileLocations -https://github.com/DeterminateSystems/nix-installer/blob/main/src/planner/mod.rs#L345 - /etc/zshrc - /etc/zsh/zshrc - - # Nix - if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then - . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' - fi - # End Nix - - https://zero-to-nix.com/start https://zero-to-nix.com/start/install https://zero-to-nix.com/concepts/nix-installer @@ -49,14 +32,3 @@ https://determinate.systems/posts/determinate-nix-installer misc https://news.ycombinator.com/item?id=34957953 https://github.com/astro/microvm.nix - -/nix/nix-installer - uninstall - install - --no-confirm - -- init none - do not use init system like systemd - --extra-config - add extra stuff to the nix.conf - -sudo -i nix upgrade-nix diff --git a/os/linux/nixos/inst/auto-determinate/src.txt b/os/linux/nixos/inst/auto-determinate/src.txt new file mode 100644 index 000000000..ac788a0e0 --- /dev/null +++ b/os/linux/nixos/inst/auto-determinate/src.txt @@ -0,0 +1,35 @@ +https://github.com/DeterminateSystems/nix-installer/blob/main/src/cli/subcommand/install.rs + ? CommonSettings +https://github.com/DeterminateSystems/nix-installer/blob/main/src/settings.rs + ? InitSystem (None, Launchd, Systemd) + + pub struct InitSettings { + pub init: InitSystem, + ... + /// Start the daemon (if not `--init none`) + long = "no-start-daemon" + } +https://github.com/DeterminateSystems/nix-installer/blob/main/src/planner/linux.rs + pub struct Linux { + #[cfg_attr(feature = "cli", clap(flatten))] + pub settings: CommonSettings, + #[cfg_attr(feature = "cli", clap(flatten))] + pub init: InitSettings, + } + + +https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/mod.rs +https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/common/configure_nix.rs +https://github.com/DeterminateSystems/nix-installer/blob/main/src/action/common/configure_shell_profile.rs +https://github.com/DeterminateSystems/nix-installer/blob/main/src/planner/macos.rs + launchd + ShellProfileLocations +https://github.com/DeterminateSystems/nix-installer/blob/main/src/planner/mod.rs#L345 + /etc/zshrc + /etc/zsh/zshrc + + # Nix + if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then + . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' + fi + # End Nix diff --git a/os/unix/network/utils/curl/samples.txt b/os/unix/network/utils/curl/samples.txt new file mode 100644 index 000000000..05f4546ea --- /dev/null +++ b/os/unix/network/utils/curl/samples.txt @@ -0,0 +1,2 @@ +curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix +