АБ
OUT_PATHS=$(nix-build "<nixpkgs>" -A hello) /etc/nix/post-build-hook.sh
Size: a a a
АБ
OUT_PATHS=$(nix-build "<nixpkgs>" -A hello) /etc/nix/post-build-hook.sh
АБ
VY
VY
OUT_PATHS=$(nix-build "<nixpkgs>" -A hello) /etc/nix/post-build-hook.sh
VY
OUT_PATHS=$(nix-build "<nixpkgs>" -A hello) /etc/nix/post-build-hook.sh
cachix authtoken ...
, но всё равно спрашивает ключ, а, это другое походуАБ
АБ
VY
АБ
АБ
АБ
post-build-hook
МК
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rclone
];
imports = [
./hardware-configuration.nix
];
networking = {
hostName = "nix";
interfaces.ens3.useDHCP = true;
useDHCP = false;
};
services = {
openssh.enable = true;
openssh.permitRootLogin = "yes";
};
system.stateVersion = "19.09";
time.timeZone = "Etc/UTC";
users = {
mutableUsers = false;
users.root.password = "password";
};
}
МК
{ config, lib, pkgs, ... }:
{
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/cloudimg-rootfs";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/UEFI";
fsType = "vfat";
};
};
imports = [
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
];
}
МК
VY
post-build-hook
VY
cachix push ...
был "All done"АБ
АБ
VY
VY
nix-build | cachix push lopataосталось хук настроить