зеркало из
https://github.com/iharh/notes.git
synced 2025-10-30 13:16:07 +02:00
m
Этот коммит содержится в:
родитель
4b07729bbd
Коммит
3a4a664fca
56
os/linux/nixos/inst/auto-determinate/cli.txt
Обычный файл
56
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 <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_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 <LOGGER>
|
||||
Which logger to use
|
||||
|
||||
[env: NIX_INSTALLER_LOGGER=]
|
||||
[default: compact]
|
||||
[possible values: compact, full, pretty, json]
|
||||
--log-directive [<LOG_DIRECTIVES>...]
|
||||
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
|
||||
@ -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
|
||||
|
||||
35
os/linux/nixos/inst/auto-determinate/src.txt
Обычный файл
35
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
|
||||
2
os/unix/network/utils/curl/samples.txt
Обычный файл
2
os/unix/network/utils/curl/samples.txt
Обычный файл
@ -0,0 +1,2 @@
|
||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user