mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 23:44:16 +01:00
699f5415396e2f37521acb9c89068c9be24c0114
Nix Configuration
This repository is home to the nix code that builds my systems.
TODO
- vscode extensions
- secret management
How to install Nix and Deploy this Flake?
Nix can be used on Linux and MacOS, we have to method to install Nix:
- Official Way to Install Nix: writen in bash script,
nix-command&flakeare disabled by default till now (2023-04-23).- you need to follow Enable flakes - NixOS Wiki to enable
flakefeature. - and it provide no method to uninstall nix automatically, you need to delte all resources & users & group(
nixbld) manually.
- you need to follow Enable flakes - NixOS Wiki to enable
- The Determinate Nix Installer: writen mainly in Rust, enable
nix-command&flakeby default, and offer an easy way to uninstall Nix.
After installed Nix with nix-command & flake enabled, you can deploy this flake with the following command:
sudo nixos-rebuild switch .#nixos
Why Nix?
Nix allows for easy to manage, collaborative, reproducible deployments. This means that once something is setup and configured once, it works forever. If someone else shares their configuration, anyone can make use of it.
References
Releases
10
Languages
Nix
82.5%
Lua
10.4%
Just
2.1%
Nu
1.6%
HCL
1%
Other
2.4%