Merge pull request #86 from ryan4yin/refactor-nixos-with-flakes-enabled

refactor: nixos with flakes enabled
This commit is contained in:
Ryan Yin
2024-02-15 16:05:34 +08:00
committed by GitHub
18 changed files with 716 additions and 356 deletions

View File

@@ -141,7 +141,7 @@ sudo nixos-rebuild switch --option substituters "https://nix-community.cachix.or
Choose one of the above three methods for configuration and deployment. After a successful deployment, all subsequent packages will preferentially search for caches from domestic mirror sources.
> If your system hostname is not `nixos-test`, you need to modify the name of `nixosConfigurations` in `flake.nix` or use `--flake /etc/nixos#nixos-test` to specify the configuration name.
> If your system hostname is not `my-nixos`, you need to modify the name of `nixosConfigurations` in `flake.nix` or use `--flake /etc/nixos#my-nixos` to specify the configuration name.
### The `extra-` Prefix for Nix Options Parameters