d
Size: a a a
d
МК
libмне нужно или нет?
d
libмне нужно или нет?
d
МК
environment.systemPackages = with pkgs; [
];
ц
configuration.nix
{ config, pkgs, ... }:
{
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
environment.systemPackages = with pkgs; [
];
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>
];
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;
root.password = "plain_text_password";
};
}
ц
МК
ц
ц
МК
imports = [и файловые системы. Собственно и всё.
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
];
ц
МК
ц
МК
ц
МК
ubuntu@nix:~$ nix-env -p /nix/var/nix/profiles/system -f '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix -iA system
error: The option `users.root' defined in `/etc/nixos/configuration.nix' does not exist.
МК
ц