АБ
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>'
Size: a a a
АБ
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>'
VL
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>'
VL
VL
АБ
АБ
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>#nixos'
в твоем случаеAP
{
blacklistedLicenses = with stdenv.lib.licenses; [ agpl3Only gpl3Only ];
}
AP
AP
let
fetchNixpkgs =
rev:
builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
importNixpkgs =
rev:
import (fetchNixpkgs rev) {
config.allowBroken = true;
config.whitelistedLicenses = with stdenv.lib.licenses; [ GPL ]; <-- вот тут stdenv нет еще
};
d
AP
VL
VL
VL
АБ
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>#nixos'
VL
nix-shell -p nixFlakes --run 'nixos-install --flake /mnt/home/<YOU>/projects/<your-repo>#nixos'
АБ
АБ
flake.nix
ещё раз?VL
АБ