nix infra
emily
a9447f0b0b
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/5d2d3e421ade554b19b4dbb0d11a04023378a330?narHash=sha256-5DUNQl9BSmLxgGLbF05G7hi/UTk9DyZq8AuEszhQA7Q%3D' (2024-03-24) → 'github:nix-community/disko/fbbac1aee6eae60c32b47e95447c4a3ec59d9773?narHash=sha256-9PipXYv1Ek1oi0WrGZYtlvnjoYS20QdSLLpJ%2BnHEbjE%3D' (2024-04-05) • Updated input 'home-manager': 'github:nix-community/home-manager/1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb?narHash=sha256-WJOahf%2B6115%2BGMl3wUfURu8fszuNeJLv9qAWFQl3Vmo%3D' (2024-03-22) → 'github:nix-community/home-manager/782eed8bb64b27acaeb7c17be4a095c85e65717f?narHash=sha256-rnkQ6qMhlxfjpCECkTMlFXHU/88QvC5KpdJWq5H6F1E%3D' (2024-04-05) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/7559df1e4af972d5f1de87975b5ef6a8d7559db2?narHash=sha256-19KQXya5VERUXOdeEJJN%2BzOqtvuE6MV3qTk9Gr4J9Uo%3D' (2024-03-24) → 'github:nixos/nixos-hardware/f3b959627bca46a9f7052b8fbc464b8323e68c2c?narHash=sha256-%2BBatEWd4HlMeK7Ora%2BgYIkarjxFVCg9oKrIeybHIIX4%3D' (2024-04-05) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/44d0940ea560dee511026a53f0e2e2cde489b4d4?narHash=sha256-YN/Ciidm%2BA0fmJPWlHBGvVkcarYWSC%2Bs3NTPk/P%2Bq3c%3D' (2024-03-23) → 'github:nixos/nixpkgs/fd281bd6b7d3e32ddfa399853946f782553163b5?narHash=sha256-Um%2B8kTIrC19vD4/lUCN9/cU9kcOsD1O1m%2BaxJqQPyMM%3D' (2024-04-03) • Updated input 'nixvim': 'github:nix-community/nixvim/e7a3461fefd983ae3443e9aa849e9d1566ab47e4?narHash=sha256-DTzi4ujZoxM3ZXStCwD6Lph3FdGtkBlvfYsDCRITjfA%3D' (2024-03-24) → 'github:nix-community/nixvim/f285a958c089ccbca9c5710d4a075683fa1af654?narHash=sha256-yrBK6Jq0UuJjP%2Bnc01OFNoKRRJgPNkbmwPpE4mD2Bis%3D' (2024-04-05) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/bcc8afd06e237df060c85bad6af7128e05fd61a3?narHash=sha256-Wf3gHh5uV6W1TV/A8X8QJf99a5ypDSugY4sNtdJDe0A%3D' (2024-03-17) → 'github:lnl7/nix-darwin/36524adc31566655f2f4d55ad6b875fb5c1a4083?narHash=sha256-sXcesZWKXFlEQ8oyGHnfk4xc9f2Ip0X/%2BYZOq3sKviI%3D' (2024-03-30) • Updated input 'nixvim/pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/e611897ddfdde3ed3eaac4758635d7177ff78673?narHash=sha256-6hOpUiuxuwpXXc/xfJsBUJeqqgGI%2BJMJuLo45aG3cKc%3D' (2024-03-20) → 'github:cachix/pre-commit-hooks.nix/c11e43aed6f17336c25cd120eac886b96c455731?narHash=sha256-DqUTQ2iAAqSDwMhKBqvi24v0Oc7pD3LCK/0FCG//TdA%3D' (2024-03-30) • Updated input 'stylix': 'github:danth/stylix/53d3e5d5b36a5227b906e00d7e884dcfb7852403?narHash=sha256-RyOvyQASi5lvKLH5ISiGGkdX1eJxYF25aQALGfN9U0k%3D' (2024-03-23) → 'github:danth/stylix/f9b9bc7c8e69942cd2583a3309f86fc5260f1275?narHash=sha256-2HFQm/gpmxtMokn6pInHlTlU7mBONLb3Y1aN8SlY0tc%3D' (2024-04-03) |
||
---|---|---|
config | ||
modules | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
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
└── modules # NixOS modules