And I say hey, what's going on?
See the codeHey, you. You're finally awake. You were trying to configure your OS declaratively, right? Walked right into that NixOS ambush, same as us, and those dotfiles over there.
[!IMPORTANT] Disclaimer: This is not a "community framework" or "NixOS distribution". Please do not use it like one. It is an ongoing and haphazard experiment to feel out NixOS and the Nix language for my own purposes, and is home to all manner of unspeakable, over-engineered hackery that make the other 9 circles of hell look like tropical beach resorts.
Until I can bend spoons with my Nix-fu, please divert your Nix(OS) questions to the NixOS discourse instead of my issue tracker. That said, I'm more than happy to hear input and discuss ideas, but be warned: I'm awful at staying on top of my Github notifications.
(screenshots coming soon)
Acquire or build a NixOS 26.11+ image:
# Yoink nixos-unstable from upstream
$ wget -O nixos.iso https://channels.nixos.org/nixos-unstable/latest-nixos-minimal-x86_64-linux.iso
Write it to a USB drive:
# Replace /dev/sdX with the correct partition!
$ cp nixos.iso /dev/sdX
Restart and boot into the installer.
Do your partitions and mount your root to /mnt (for
example).
If you've already created a host config, then simply run the installer:
zsh <(curl -s https://raw.githubusercontent.com/hlissner/dotfiles/refs/heads/master/install.zsh)
Otherwise:
Clone these dotfiles to /mnt/etc/dotfiles (required):
$ git clone --recursive https://github.com/hlissner/dotfiles /mnt/etc/dotfiles
Create a host config in /mnt/etc/dotfiles/hosts/ (see existing
ones for examples).
Run the installer as root (the installer's nixos user has passwordless
sudo):
$ sudo /mnt/etc/dotfiles/install.zsh
Reboot!
[!WARNING] Don't forget to change your
rootand$USERpasswords! They are set tonixosby default.
And I say, bin/hey, what's going on?.
SYNOPSIS:
hey [-?|-??|-???|-!] [-h|--help] COMMAND [ARGS...]
OPTIONS:
-!
Do a dry run. WARNING: It's up to called scripts to obey!
-? | -?? | -???
Enable debug (verbose) mode, at increasing verbosity.
-h, --help
Display the documentation embedded in a target script's header.
COMMANDS:
- build|b -- Build nix images, or recompile bin/hey.
- exec -- Execute a program on $PATH through hey.
- gc -- Garbage collect and optimize the nix store.
- get|set -- Alias for hey vars {get,set} ...
- help|h -- Display documentation for a command.
- hook -- Trigger an event.
- host -- Dispatch to hosts/$HOST/bin.
- info -- Display information about the current system (JSON).
- ops -- Operate on remote HeyOS-powered hosts.
- path -- Prints a path to a subarea of my dotfiles.
- profile|pr -- Operate on the nixos profile.
- pull -- Update one of (or all) HeyOS's inputs.
- reload|re -- Reload running services.
- repl -- Open a nix or janet repl with this flake preloaded.
- swap|sw -- Swap nix-store symlinks with mutable copies (and back)
- sync|s -- Rebuild this flake (using nixos-rebuild).
- test -- Run the Hey and/or Nix test suites.
- vars -- Get or set session or persistent state in userspace.
- which -- Print a command's path (with arguments) without running it.
- wm -- Dispatch to config/$WM/bin.
- .* -- Execute the first script found under host, wm, or bin/.
- ./ -- Execute a script by path.
- @* -- Dispatch to config/DIR/bin.
Why NixOS?
Because managing a fleet of servers, a hundred strong, is the tenth circle of hell without a declarative, generational, and immutable single-source-of-truth configuration framework like NixOS.
Sure beats the nightmare of brittle capistrano/chef/puppet/ansible/shell scripts I left behind.
Should I use NixOS?
Short answer: no.
Long answer: no really. Don't.
Long long answer: I'm not kidding. Don't.
Unsigned long long answer: Alright alright. Here's why not:
If you're not discouraged by this, then you didn't need my advice in the first place. Stop procrastinating and try NixOS!
How do you manage secrets?
With agenix.
Why did you write bin/hey?
I envy Guix's CLI and want similar for NixOS, whose toolchain is spread across
many commands, none of which are as intuitive: nix, nix-collect-garbage,
nixos-rebuild, nix-env, nix-shell, etc.
I don't claim hey is the answer, but who doesn't like their own brew?
How 2 flakes?
Would it be the NixOS experience if I gave you all the answers in one, convenient place?
No. Suffer my pain:
And if all else fails, ask for help on the NixOS Discourse.
(top 24 of 75)
336 followers · starred Mar 2022
374 followers · starred Jun 2022
31 followers · starred Mar 2021
130 followers · starred Apr 2020
And I say hey, what's going on?
See the codeHey, you. You're finally awake. You were trying to configure your OS declaratively, right? Walked right into that NixOS ambush, same as us, and those dotfiles over there.
[!IMPORTANT] Disclaimer: This is not a "community framework" or "NixOS distribution". Please do not use it like one. It is an ongoing and haphazard experiment to feel out NixOS and the Nix language for my own purposes, and is home to all manner of unspeakable, over-engineered hackery that make the other 9 circles of hell look like tropical beach resorts.
Until I can bend spoons with my Nix-fu, please divert your Nix(OS) questions to the NixOS discourse instead of my issue tracker. That said, I'm more than happy to hear input and discuss ideas, but be warned: I'm awful at staying on top of my Github notifications.
(screenshots coming soon)
Acquire or build a NixOS 26.11+ image:
# Yoink nixos-unstable from upstream
$ wget -O nixos.iso https://channels.nixos.org/nixos-unstable/latest-nixos-minimal-x86_64-linux.iso
Write it to a USB drive:
# Replace /dev/sdX with the correct partition!
$ cp nixos.iso /dev/sdX
Restart and boot into the installer.
Do your partitions and mount your root to /mnt (for
example).
If you've already created a host config, then simply run the installer:
zsh <(curl -s https://raw.githubusercontent.com/hlissner/dotfiles/refs/heads/master/install.zsh)
Otherwise:
Clone these dotfiles to /mnt/etc/dotfiles (required):
$ git clone --recursive https://github.com/hlissner/dotfiles /mnt/etc/dotfiles
Create a host config in /mnt/etc/dotfiles/hosts/ (see existing
ones for examples).
Run the installer as root (the installer's nixos user has passwordless
sudo):
$ sudo /mnt/etc/dotfiles/install.zsh
Reboot!
[!WARNING] Don't forget to change your
rootand$USERpasswords! They are set tonixosby default.
And I say, bin/hey, what's going on?.
SYNOPSIS:
hey [-?|-??|-???|-!] [-h|--help] COMMAND [ARGS...]
OPTIONS:
-!
Do a dry run. WARNING: It's up to called scripts to obey!
-? | -?? | -???
Enable debug (verbose) mode, at increasing verbosity.
-h, --help
Display the documentation embedded in a target script's header.
COMMANDS:
- build|b -- Build nix images, or recompile bin/hey.
- exec -- Execute a program on $PATH through hey.
- gc -- Garbage collect and optimize the nix store.
- get|set -- Alias for hey vars {get,set} ...
- help|h -- Display documentation for a command.
- hook -- Trigger an event.
- host -- Dispatch to hosts/$HOST/bin.
- info -- Display information about the current system (JSON).
- ops -- Operate on remote HeyOS-powered hosts.
- path -- Prints a path to a subarea of my dotfiles.
- profile|pr -- Operate on the nixos profile.
- pull -- Update one of (or all) HeyOS's inputs.
- reload|re -- Reload running services.
- repl -- Open a nix or janet repl with this flake preloaded.
- swap|sw -- Swap nix-store symlinks with mutable copies (and back)
- sync|s -- Rebuild this flake (using nixos-rebuild).
- test -- Run the Hey and/or Nix test suites.
- vars -- Get or set session or persistent state in userspace.
- which -- Print a command's path (with arguments) without running it.
- wm -- Dispatch to config/$WM/bin.
- .* -- Execute the first script found under host, wm, or bin/.
- ./ -- Execute a script by path.
- @* -- Dispatch to config/DIR/bin.
Why NixOS?
Because managing a fleet of servers, a hundred strong, is the tenth circle of hell without a declarative, generational, and immutable single-source-of-truth configuration framework like NixOS.
Sure beats the nightmare of brittle capistrano/chef/puppet/ansible/shell scripts I left behind.
Should I use NixOS?
Short answer: no.
Long answer: no really. Don't.
Long long answer: I'm not kidding. Don't.
Unsigned long long answer: Alright alright. Here's why not:
If you're not discouraged by this, then you didn't need my advice in the first place. Stop procrastinating and try NixOS!
How do you manage secrets?
With agenix.
Why did you write bin/hey?
I envy Guix's CLI and want similar for NixOS, whose toolchain is spread across
many commands, none of which are as intuitive: nix, nix-collect-garbage,
nixos-rebuild, nix-env, nix-shell, etc.
I don't claim hey is the answer, but who doesn't like their own brew?
How 2 flakes?
Would it be the NixOS experience if I gave you all the answers in one, convenient place?
No. Suffer my pain:
And if all else fails, ask for help on the NixOS Discourse.
(top 24 of 75)
336 followers · starred Mar 2022
374 followers · starred Jun 2022
31 followers · starred Mar 2021
130 followers · starred Apr 2020