summaryrefslogtreecommitdiff
path: root/modules/examples
diff options
context:
space:
mode:
authorThane Gill <me@thanegill.com>2024-01-27 19:33:54 -0800
committerThane Gill <me@thanegill.com>2024-01-27 19:37:27 -0800
commit0f0478efa68e442dd46fc64d46889da7c0859ad5 (patch)
tree581f59d163dba662cd2b6e0b576871d796f520ea /modules/examples
parent1e706ef323de76236eb183d7784f3bd57255ec0b (diff)
Add zsh completions to darwin-rebuld by default
Diffstat (limited to 'modules/examples')
-rw-r--r--modules/examples/lnl.nix34
1 files changed, 0 insertions, 34 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix
index 264bd1a..2edf6cb 100644
--- a/modules/examples/lnl.nix
+++ b/modules/examples/lnl.nix
@@ -308,40 +308,6 @@
nixpkgs.overlays = [
(self: super: {
- darwin-zsh-completions = super.runCommand "darwin-zsh-completions-0.0.0"
- { preferLocalBuild = true; }
- ''
- mkdir -p $out/share/zsh/site-functions
-
- cat <<-'EOF' > $out/share/zsh/site-functions/_darwin-rebuild
- #compdef darwin-rebuild
- #autoload
-
- _nix-common-options
-
- local -a _1st_arguments
- _1st_arguments=(
- 'switch:Build, activate, and update the current generation'\
- 'build:Build without activating or updating the current generation'\
- 'check:Build and run the activation sanity checks'\
- 'changelog:Show most recent entries in the changelog'\
- )
-
- _arguments \
- '--list-generations[Print a list of all generations in the active profile]'\
- '--rollback[Roll back to the previous configuration]'\
- {--switch-generation,-G}'[Activate specified generation]'\
- '(--profile-name -p)'{--profile-name,-p}'[Profile to use to track current and previous system configurations]:Profile:_nix_profiles'\
- '1:: :->subcmds' && return 0
-
- case $state in
- subcmds)
- _describe -t commands 'darwin-rebuild subcommands' _1st_arguments
- ;;
- esac
- EOF
- '';
-
vim_configurable = super.vim_configurable.override {
guiSupport = "no";
};