Usage:
$ sd [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
bid
: Get macos App BundleID!bootstrap
: Builds an initial Configurationbuild
: builds the specified flake outputcache
: cache the output environment of flake.nixclean
: remove previously built configurations and...darwin
: macos Commonly used shortcut commandsenv
: save shell environment variablegc
: run garbage collection on unused nix store...init
: Reinitialize darwinpull
: pull changes from remote reporepl
: nix replsc
: macos launchctl services managerservice
: macos launchctl services managerswitch
: builds and activates the specified flake...update
: update all flake inputs or optionally...
Get macos App BundleID!
Usage:
$ sd bid [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
db
: Display all app BundleIddisplay
: Get All App Nameget
: get one app bundleid
Display all app BundleId
Usage:
$ sd bid db [OPTIONS]
Options:
--help
: Show this message and exit.
Get All App Name
Usage:
$ sd bid display [OPTIONS]
Options:
--help
: Show this message and exit.
get one app bundleid
Usage:
$ sd bid get [OPTIONS] [PKG]
Arguments:
[PKG]
: App Path, Please run: getBundleId.py display
Options:
--help
: Show this message and exit.
Builds an initial Configuration
Usage:
$ sd bootstrap [OPTIONS] [HOST]
Arguments:
[HOST]
: The hostname of the configuration to build [default: lyeli@aarch64-darwin]
Options:
--nixos / --no-nixos
: [default: no-nixos]--darwin / --no-darwin
: [default: no-darwin]--home / --no-home
: [default: no-home]--remote / --no-remote
: Whether to fetch current changes from the remote [default: no-remote]--debug / --no-debug
: [default: no-debug]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]-a, --args [AGES]
: nix additional parameters--help
: Show this message and exit.
builds the specified flake output
Usage:
$ sd build [OPTIONS] [HOST]
Arguments:
[HOST]
: the hostname to build [default: lyeli@aarch64-darwin]
Options:
--remote / --no-remote
: whether to fetch from the remote [default: no-remote]--nixos / --no-nixos
: [default: no-nixos]--darwin / --no-darwin
: [default: no-darwin]--home / --no-home
: [default: no-home]--debug / --no-debug
: [default: debug]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]-a, --args [AGES]
: nix additional parameters--help
: Show this message and exit.
cache the output environment of flake.nix
Usage:
$ sd cache [OPTIONS]
Options:
--cache-name TEXT
: [default: shanyouli]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]--help
: Show this message and exit.
remove previously built configurations and symlinks from DOTFILES
Usage:
$ sd clean [OPTIONS] [FILENAME]
Arguments:
[FILENAME]
: the filename to be cleaned, or '*' for all files [default: result]
Options:
--dry-run / --no-dry-run
: Test the result [default: no-dry-run]--help
: Show this message and exit.
macos Commonly used shortcut commands
Usage:
$ sd darwin [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
disksetup
: Configure disk setup for nix-darwinproxy
: toggle to set proxy for...refresh
: Docker restart
Configure disk setup for nix-darwin
Usage:
$ sd darwin disksetup [OPTIONS]
Options:
--help
: Show this message and exit.
toggle to set proxy for org.nixos.nix-daemon.plist
Usage:
$ sd darwin proxy [OPTIONS]
Options:
--url TEXT
: proxy url--help
: Show this message and exit.
Docker restart
Usage:
$ sd darwin refresh [OPTIONS]
Options:
--rd / --no-rd
: Redirect the bundle id to specify the version [default: no-rd]--help
: Show this message and exit.
save shell environment variable
Usage:
$ sd env [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
save
: save environment var on file!
save environment var on file!
Usage:
$ sd env save [OPTIONS] [FILE]
Arguments:
[FILE]
: save file [default: sdenv.json]
Options:
--help
: Show this message and exit.
run garbage collection on unused nix store paths
Usage:
$ sd gc [OPTIONS]
Options:
-d, --delete-older-than [AGE]
: specify minimum age for deleting store paths-s, --save INTEGER
: Save the last x number of builds [default: 3]--dry-run / --no-dry-run
: test the result of garbage collection [default: no-dry-run]--help
: Show this message and exit.
Reinitialize darwin
Usage:
$ sd init [OPTIONS] [HOST]
Arguments:
[HOST]
: the hostname of the configuration to build [default: lyeli@aarch64-darwin]
Options:
--dry-run / --no-dry-run
: Test the result of init [default: no-dry-run]--help
: Show this message and exit.
pull changes from remote repo
Usage:
$ sd pull [OPTIONS]
Options:
--dry-run / --no-dry-run
: Test the result [default: no-dry-run]--help
: Show this message and exit.
nix repl
Usage:
$ sd repl [OPTIONS]
Options:
--pkgs / --no-pkgs
: import [default: no-pkgs]--flake / --no-flake
: Automatically import build flake [default: no-flake]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]--help
: Show this message and exit.
macos launchctl services manager
Usage:
$ sd sc [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
disable
: disable serviceenable
: disable servicerestart
: restart <org.nixos.xxx> servicestart
: start a servicestatus
: status service infostop
: stop a service
disable service
Usage:
$ sd sc disable [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
disable service
Usage:
$ sd sc enable [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
restart <org.nixos.xxx> service
Usage:
$ sd sc restart [OPTIONS] [SERVICE_NAME]
Arguments:
[SERVICE_NAME]
: service name
Options:
-a, --all
: restart all service--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
start a service
Usage:
$ sd sc start [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
-r, --restart
: start fail service--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
status service info
Usage:
$ sd sc status [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
stop a service
Usage:
$ sd sc stop [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
macos launchctl services manager
Usage:
$ sd service [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
disable
: disable serviceenable
: disable servicerestart
: restart <org.nixos.xxx> servicestart
: start a servicestatus
: status service infostop
: stop a service
disable service
Usage:
$ sd service disable [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
disable service
Usage:
$ sd service enable [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
restart <org.nixos.xxx> service
Usage:
$ sd service restart [OPTIONS] [SERVICE_NAME]
Arguments:
[SERVICE_NAME]
: service name
Options:
-a, --all
: restart all service--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
start a service
Usage:
$ sd service start [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
-r, --restart
: start fail service--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
status service info
Usage:
$ sd service status [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
stop a service
Usage:
$ sd service stop [OPTIONS] [NAME]
Arguments:
[NAME]
: service name
Options:
--dry-run / --no-dry-run
: Test the command [default: no-dry-run]--help
: Show this message and exit.
builds and activates the specified flake output
Usage:
$ sd switch [OPTIONS] [HOST]
Arguments:
[HOST]
: the hostname to build [default: lyeli@aarch64-darwin]
Options:
--remote / --no-remote
: Whether to fetch from the remote [default: no-remote]--nixos / --no-nixos
: [default: no-nixos]--darwin / --no-darwin
: [default: no-darwin]--home / --no-home
: [default: no-home]--debug / --no-debug
: [default: no-debug]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]-a, --args [AGES]
: nix additional parameters--help
: Show this message and exit.
update all flake inputs or optionally specific flakes
Usage:
$ sd update [OPTIONS]
Options:
-f, --flake [FLAKE]
: specify an individual flake to be updated-n, --no-flake [FLAKE]
: Don't update the following flake-s, --stable
: Update only flake-inputs that are currently stable on the system--commit / --no-commit
: commit the updated lockfile [default: no-commit]--dry-run / --no-dry-run
: Test the result [default: no-dry-run]--help
: Show this message and exit.