No description
Find a file
Nikodem Rabuliński 86d951adea
All checks were successful
/ check (pull_request) Successful in 1m33s
flake.lock: update
2025-06-01 18:29:03 +02:00
.forgejo/workflows forgejo: no redundant CI 2025-05-29 20:49:21 +02:00
assets hosts: migrate to nilla 2025-05-01 23:01:24 +02:00
hosts hosts/hijiri/skhd: more spaces 2025-05-28 19:37:07 +02:00
modules flake.lock: update 2025-06-01 18:29:03 +02:00
pkgs flake.lock: update 2025-06-01 18:29:03 +02:00
secrets hosts: remove legion 2025-03-22 23:22:42 +01:00
services hosts: migrate to nilla 2025-05-01 23:01:24 +02:00
wrappers nilla: add inputs argument 2025-05-01 23:01:24 +02:00
.envrc nilla: migrate devshells 2025-05-01 22:59:58 +02:00
.gitignore nilla: add ci.check 2025-05-01 23:01:24 +02:00
default.nix nilla: add ci.check 2025-05-01 23:01:24 +02:00
flake.lock flake.lock: update 2025-06-01 18:29:03 +02:00
flake.nix modules/home/desktop: use firefox from nixpkgs 2025-05-01 23:01:24 +02:00
garnix.yaml treewide: reformat 2025-02-04 12:13:21 +01:00
inputs.nix inputs: lazy-trees at home 2025-05-01 23:01:24 +02:00
nilla.nix treewide: use nh from master instead of nixpkgs 2025-05-01 23:01:24 +02:00
README.md treewide: hercules is no more 2025-05-29 20:43:34 +02:00
shell.nix nilla: init 2025-05-01 22:17:20 +02:00
treefmt.nix treefmt: migrate to nilla 2025-05-01 23:01:22 +02:00

雪定(せってい)

Collection of my personal Nix configurations and opinionated NixOS, nix-darwin, home-manager, and nilla modules.

Caution

I tried to make the modules in this repository useful to others without having to modify them, meaning I tried to have many configuration options, have them be disabled by default, etc. That is no more and although I still encourage people to use my config for learning and inspiration, the modules will now assume they're running in my infrastructure and I'll only add configuration and/or enabling options when it makes sense to me, personally.

Project structure

  • hosts - per-machine configurations
    • kazuki - my linux arm server
    • hijiri - my macbook
    • hijiri-vm - linux vm running on my macbook
    • ude - another linux arm server
    • kogata - my m1 mac mini doubling as a server
    • youko - my linux x86 server
  • modules - options which in principle should be reusable by others
    • system - my opinionated nixos/nix-darwin modules
    • home - my opinionated home-manager modules
    • nilla - nilla modules
  • services - configs for services I self-host
  • secrets - agenix secrets
  • wrappers - nix packages wrapped with my configs (see: wrapper-manager)
  • assets - miscellaneous values reused throughout my config

Code guidelines

Not set rules but general guidelines for myself to hopefully keep this config clean, maintainable, and reusable.

  • only importing downwards. this means no imports = [ ../../foo/bar/some-module.nix ];
  • ideally only one level of imports. this means i'll try to only do imports = [ ./foo ]; or imports = [ ./bar.nix ] but not imports = [ ./x/y/z.nix ];
  • the file should be roughly in order of most interesting to least interesting options.
  • imports should be the first attribute (except for _file)
  • there should be no implicit state anywhere in the config. (sounds obvious but this is already broken with legion and the zfs pool but i'll let that one slide) to achieve this i still need to create a proper live iso with my config and my bootstrapping ssh key

TODOs

Sorted rougly by priority

  • get rid of flakes completely
  • bring back ci (sorta done)
  • automatic deploys (either push or pull, to be decided)
  • make the configuration truly declarative (to a reasonable degree)
  • themeing solution