this is work in progress
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
emily 0382bb8748
added mailcow
2 days ago
config added mailcow 2 days ago
lib/shinyflakes added hydraJobs 2 days ago
modules added forgejo 5 days ago
pkgs added nyastodon config 2 weeks ago
secrets/services added vaultwarden 5 days ago
.gitignore gitignore 4 months ago
.sops.yaml added .sops.yaml 5 days ago
README.md add nixpkgs.hostplatform by default 1 week ago
flake.lock added hydraJobs 2 days ago
flake.nix added hydraJobs 2 days ago

README.md

emilys Nix Infra

First deployment

remote hosts

$ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host>

desktops

$ nix --extra-experimental-features nix-command run github:nix-community/nixos-anywhere -- --flake "git+https://git.bsd.gay/snaki/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
$ nixos-enter
$ passwd <local-user>
reboot
$ git clone https://git.bsd.gay/snaki/nixfiles.git
$ colmena apply-local --sudo --node <node> 

Deploy changes on ...

all hosts

$ colmena apply --on @production

routers only

$ colmena apply --on @router

Structure

nixfiles
├── config              # NixOS configuration
│   ├── common          # configuration applyed to all hosts (some settings might be influenced by machine-type)
│   │   └── users       # user configuration
│   ├── hosts           # configuration for specific hosts
│   ├── profiles        # configuariotn for specific machine types
│   └── services        # common service configuration
├── lib                 # helper functions
├── modules             # NixOS modules
└── pkgs                # nixpkgs overlays