Awesome
balsoft’s nixos configuration
License
Most of this config is in public domain (see LICENSE).
Stuff that may be useful
Secrets
Secrets are kept in a separate (private) git repository, encrypted with
gpg and decrypted at runtime using secrets.nix
and secrets-envsubst.nix. The repo is
pass(1)
-compatible, so passwords are also stored there.
pls no pwn
Themes
Themes for everything are generated from a custom base16 theme. The theme is defined in themes.nix, and the generation is spread all around modules.
Tmpfs root
To prevent extraneous state from clinging on the drive, I am using tmpfs root on my two main devices. It is implemented in persist.nix.
Easy Wireguard setup module
Copied from notgne2 with permission to redistribute as public domain software. Can be found in ezwg.nix
Installing it on your machine
- Add a config for your device to
machines
(it has to setdeviceSpecific.devInfo
, import yourhardware-configuration.nix
and one of the profiles, and contain asystem
file); sudo nixos-rebuild test --flake .