mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-02-16 10:29:55 +01:00
polish: change nixos name to my-nixos to make it more understandable
This commit is contained in:
parent
7b10abda1d
commit
a59b8f63a1
@ -150,7 +150,7 @@ The second method is to configure `substituters` and `trusted-public-keys` using
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
ai = nixpkgs.lib.nixosSystem {
|
my-nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@ -238,7 +238,7 @@ In other words, you can use it like this:
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
ai = nixpkgs.lib.nixosSystem {
|
my-nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -138,7 +138,7 @@ Nix 中通过如下几个 options 来配置缓存服务器:
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
ai = nixpkgs.lib.nixosSystem {
|
my-nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@ -220,7 +220,7 @@ Nix 提供了
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
ai = nixpkgs.lib.nixosSystem {
|
my-nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user