Nix Configuration
This repository is home to the nix code that builds my systems.
Screenshots
TODO
- enable disk encryption to enhance data security
- make fcitx5-rime work in vscode/chrome on wayland
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.
Want to know Nix in details? Looking for a beginner-friendly tutorial? Check out NixOS & Nix Flakes - A Guide for Beginners!
How to Deploy this Flake?
Note: you should NOT deploy this flake directly on your machine, it contains my hardware information and personal information which is not suitable for you. You may use this repo as a reference to build your own configuration.
After installed NixOS with nix-command & flake enabled, you can deploy this flake with the following command:
# deploy my test configuration
sudo nixos-rebuild switch --flake .#nixos-test
# deploy my PC's configuration
sudo nixos-rebuild switch --flake .#msi-rtx4090
# or just deploy with hostname
sudo nixos-rebuild switch
# we can also deploy using make, which is defined in Makefile
make deploy
Install Apps from Flatpak
We can install apps from flathub, which has a lot of apps that are not supported well in nixpkgs.
# Add the Flathub repository
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# install apps from flathub
flatpak install netease-cloud-music-gtk
# or you can search apps from flathub
flatpak search <keyword>
# search on website is also supported: https://flathub.org/
Other Interesting Dotfiles
Other configurations from where I learned and copied:
