treewide: use pkgs.nixos-enter instead of config.system.build.nixos-enter

This commit is contained in:
K900 2024-09-21 12:44:04 +03:00
parent 5dcbab6b74
commit 1f9fc918ce
4 changed files with 5 additions and 5 deletions

View File

@ -6,13 +6,13 @@ tedious, so here is a quick way to see if the installer works properly:
```ShellSession ```ShellSession
# mount -t tmpfs none /mnt # mount -t tmpfs none /mnt
# nixos-generate-config --root /mnt # nixos-generate-config --root /mnt
$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-install $ nix-build '<nixpkgs>' -A nixos-install
# ./result/bin/nixos-install # ./result/bin/nixos-install
``` ```
To start a login shell in the new NixOS installation in `/mnt`: To start a login shell in the new NixOS installation in `/mnt`:
```ShellSession ```ShellSession
$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter $ nix-build '<nixpkgs>' -A nixos-enter
# ./result/bin/nixos-enter # ./result/bin/nixos-enter
``` ```

View File

@ -321,7 +321,7 @@ let format' = format; in let
e2fsprogs e2fsprogs
lkl lkl
config.system.build.nixos-install config.system.build.nixos-install
config.system.build.nixos-enter nixos-enter
nix nix
systemdMinimal systemdMinimal
] ]

View File

@ -124,7 +124,7 @@ let
tools = lib.makeBinPath ( tools = lib.makeBinPath (
with pkgs; [ with pkgs; [
config.system.build.nixos-enter nixos-enter
config.system.build.nixos-install config.system.build.nixos-install
dosfstools dosfstools
e2fsprogs e2fsprogs

View File

@ -112,7 +112,7 @@ let
tools = lib.makeBinPath ( tools = lib.makeBinPath (
with pkgs; [ with pkgs; [
config.system.build.nixos-enter nixos-enter
config.system.build.nixos-install config.system.build.nixos-install
dosfstools dosfstools
e2fsprogs e2fsprogs