mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
126c31d73b99380f9641d91ec03ae7e49fb5d95c
Nix Configuration
This repository is home to the nix code that builds my systems.
TODO
- vscode extensions - nix-vscode-extensions
- secret management - sops-nix
- switch from i3wm to hyprland
- i3wm: old and stable, only support X11
- sway: compatible with i3wm, support Wayland. do not support Nvidia GPU officially.
- hyprland: project starts from 2022, support Wayland, envolving fast, good looking, support Nvidia GPU.
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.
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-test
References
Releases
10
Languages
Nix
81%
Lua
12%
Just
2.1%
Nu
1.6%
HCL
1.1%
Other
2.2%