My NixOS/home-manager configuration files. NixOS: https://nixos.org; Home-manager: https://github.com/rycee/home-manager.
Alexander Bantyev
1aacea28b2
Flake lock file updates: • Updated input 'NUR': 'github:nix-community/NUR/7cbbfff5ad8e8e6c299b526f336f6697785a7b43' (2022-11-14) → 'github:nix-community/NUR/c81b1e527f3a220abfa9bf8096153d52784c5007' (2022-11-30) • Updated input 'coeurl': 'git+https://nheko.im/nheko-reborn/coeurl?ref=refs%2fheads%2fmaster&rev=cfeae3acef061dbb19706f462ee58b9be2e6ec76' (2022-07-21) → 'git+https://nheko.im/nheko-reborn/coeurl?ref=refs%2fheads%2fmaster&rev=f989f3c54c1ca15e29c5bd6b1ce4efbcb3fd8078' (2022-11-20) • Updated input 'crdt': 'git+https://code.librehq.com/qhong/crdt.el?ref=refs%2fheads%2fmaster&rev=92a7c93a3b4cb4b40f133acd22c89a5fda5cdd30' (2022-11-04) → 'git+https://code.librehq.com/qhong/crdt.el?ref=refs%2fheads%2fmaster&rev=e6d42f42c5dedb73560048f4bf6263c63ffa21bb' (2022-11-19) • Updated input 'deploy-rs': 'github:serokell/deploy-rs/b011f13bc577b978f52aaefde5605332f7bca7e9' (2022-11-11) → 'github:serokell/deploy-rs/2a3c5f70eee04a465aa534d8bd4fcc9bb3c4a8ce' (2022-11-18) • Updated input 'direnv-vscode': 'github:direnv/direnv-vscode/ed53dedd732f7547d5487c902ec3802403c04df5' (2022-11-13) → 'github:direnv/direnv-vscode/2043991560f498647bab4f3cd4c7116cfe415d96' (2022-12-04) • Added input 'direnv-vscode/devshell': 'github:numtide/devshell/96a9dd12b8a447840cc246e17a47b81a4268bba7' (2022-10-31) • Added input 'direnv-vscode/devshell/flake-utils': follows 'direnv-vscode/flake-utils' • Added input 'direnv-vscode/devshell/nixpkgs': follows 'direnv-vscode/nixpkgs' • Updated input 'direnv-vscode/flake-compat': 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19) → 'github:edolstra/flake-compat/009399224d5e398d03b22badca40a37ac85412a1' (2022-11-17) • Updated input 'direnv-vscode/nixpkgs': 'github:NixOS/nixpkgs/d8f2c4d846a2e65ad3f5a5e842b672f0b81588a2' (2022-11-12) → 'github:NixOS/nixpkgs/49b8ad618e64d9fe9ab686817bfebe047860dcae' (2022-12-03) • Updated input 'flake-compat': 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19) → 'github:edolstra/flake-compat/009399224d5e398d03b22badca40a37ac85412a1' (2022-11-17) • Updated input 'home-manager': 'github:rycee/home-manager/bc90de24d898655542589237cc0a6ada7564cb6c' (2022-11-13) → 'github:rycee/home-manager/747e36476f341720404bd0d14d687a135a4ce5bf' (2022-12-05) • Updated input 'home-manager/nixpkgs': 'github:nixos/nixpkgs/3bacde6273b09a21a8ccfba15586fb165078fb62' (2022-11-05) → 'github:nixos/nixpkgs/b72b8b94cf0c012b0252a9100a636cad69696666' (2022-12-02) • Updated input 'impermanence': 'github:nix-community/impermanence/def994adbdfc28974e87b0e4c949e776207d5557' (2022-08-31) → 'github:nix-community/impermanence/5df9108b346f8a42021bf99e50de89c9caa251c3' (2022-11-17) • Updated input 'materia-theme': 'github:nana-4/materia-theme/af63425f9bbb2ac9bc4853a4357457d743c65308' (2021-12-02) → 'github:nana-4/materia-theme/eb83bc174fad52cba9541efa78587664ca19542c' (2022-11-29) • Updated input 'mopidy-ytmusic': 'github:OzymandiasTheGreat/mopidy-ytmusic/b8442cf6859ccc670e103af01950bb82a8847a6a' (2022-08-22) → 'github:OzymandiasTheGreat/mopidy-ytmusic/3753c4daeb6094e9c68eb63419e8ba936b92e61b' (2022-11-30) • Updated input 'mtxclient': 'github:nheko-reborn/mtxclient/86bc6be6558232baa446215729d843d1157a4253' (2022-11-03) → 'github:nheko-reborn/mtxclient/7155cbb8ed3289f2cc7269da7607b0dd012f471b' (2022-12-03) • Updated input 'nheko': 'github:nheko-reborn/nheko/ed889c32fc1fe08f57831378935a2fd157dbb3bf' (2022-11-09) → 'github:nheko-reborn/nheko/ea5984a575b34967fa7a58e117fe2deccad7c0b1' (2022-12-04) • Updated input 'nix': 'github:nixos/nix/302ddee749f1341895b3f18c7f430dfc13171985' (2022-11-11) → 'github:nixos/nix/3b05124682f7f009366d2b9d83a5939cdda082fe' (2022-12-05) • Updated input 'nix-direnv': 'github:nix-community/nix-direnv/4746490a9435de6ecfa26924c983cee697722596' (2022-11-13) → 'github:nix-community/nix-direnv/22b5729f266a6d59746fdb12eb3303bb2de63896' (2022-12-05) • Updated input 'nix-direnv/nixpkgs': 'github:NixOS/nixpkgs/d8f2c4d846a2e65ad3f5a5e842b672f0b81588a2' (2022-11-12) → 'github:NixOS/nixpkgs/813836d64fa57285d108f0dbf2356457ccd304e3' (2022-12-03) • Updated input 'nix-vscode-marketplace': 'github:AmeerTaweel/nix-vscode-marketplace/2e9508c0cd2c2daa6323f8443bf123c7112db047' (2022-10-17) → 'github:AmeerTaweel/nix-vscode-marketplace/72e94403fe2f21a18d35c4e6637ec0fc4f874b00' (2022-12-04) • Updated input 'nixos-fhs-compat': 'github:balsoft/nixos-fhs-compat/0cf9397b825686b3cfa34a0d0bdcdeabcbb8ea03' (2021-12-04) → 'github:balsoft/nixos-fhs-compat/e339cc708dd35e44d28847d773b19c27e7e17590' (2022-11-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5f588eb4a958f1a526ed8da02d6ea1bea0047b9f' (2022-11-10) → 'github:nixos/nixpkgs/61a8a98e6d557e6dd7ed0cdb54c3a3e3bbc5e25c' (2022-12-03) • Updated input 'rycee': 'gitlab:rycee/nur-expressions/e0c23091284e093c2dab93d0ad3f737281778865' (2022-11-14) → 'gitlab:rycee/nur-expressions/8b2b413448e9dc1e506731033f688763d7d6148a' (2022-12-05) • Updated input 'simple-nixos-mailserver': 'gitlab:simple-nixos-mailserver/nixos-mailserver/004c229ca44c069d93c92abf67ff1619fb508c6a' (2022-07-19) → 'gitlab:simple-nixos-mailserver/nixos-mailserver/694e7d34f60028f4877517e1c7c73c9527fad400' (2022-11-30) • Updated input 'sonoff-lan': 'github:AlexxIT/SonoffLAN/1b0f3f12bffd353672d0dacff2721b20a009f2a6' (2022-09-27) → 'github:AlexxIT/SonoffLAN/b74359fb85afe9f292822cf72f31dce53c58855a' (2022-11-15) |
||
---|---|---|
.vscode | ||
compat | ||
machines | ||
modules | ||
profiles | ||
roles | ||
.envrc | ||
.gitignore | ||
.projectile | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
lib.nix | ||
LICENSE | ||
overlay.nix | ||
README.md | ||
shell.nix |
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 .