A (not so) Good Flake
The pattern I follow easily permits adding more hosts or users, pending a little elbow grease on the flake. Host definitions
live under hosts/
and user configurations live under home/
. Home Manager handles dotfiles and host's user configurations.
The file pattern allows to create additional users under home/<host>
.
The core flake is written to bootstrap my specific system(s):
wayward
: Laptop with Wayland + Hyprlandnord
: VPS
wayward
is my Framework laptop running hyprland. Its configuration is found in the following directories:
Host Path: hosts/<host>/
Home-Manager Path: home/crutonjohn/<host>/
Home-Manager Common: home/crutonjohn/common/
Current look for Wayland on my laptop:
## Install Wayland + Hyprland
sudo nixos-rebuild switch --flake github:crutonjohn/nixos#wayward
## Install Wayland + Hyprland
home-manager switch --flake github:crutonjohn/nixos#bjohn@work
My configs follow the stable
channel. A GitHub action updates flake.lock
nightly.
- Heavily inspired by and borrowed from:
- reckenrode's very well organized nixos-configs
- Ruixi-rebirth's flakes
- jahanson's nix repo "mochi"
- The NixOS community on Reddit
- The Unofficial Nix/NixOS Discord Server
- The wonderful folks in the Home Operations Discord Server
- migrate from stinky crusty X11 to shiny beautiful Wayland
- create nixpkg for kns PR submitted: NixOS/nixpkgs#193995
- re-create Home Manager config for non-NixOS machines
- create linode nixos image
- nix-ify VPS
- nix-ify Headscale VPN
- nix-ify blog
-
nix-ify the k8s cluster - edit $PATH for pkgs.fish to enable krew plugins (
set -gx PATH $PATH $HOME/.krew/bin
) - create multi-user pattern in
flake.nix