[Nix-dev] nixops: argument list too long
Eike
eike at eknet.org
Sun Jul 24 16:46:14 CEST 2016
It seems the `collection-latexextra' makes the difference. If I remove
it from the arguments to texlive.combine I can deploy.
-Eike
Eike <eike at eknet.org> writes:
> It turns out, that it is my tex package. If I remove it, it deploys
> successfully.
>
> Here is a nix file that I tested with:
>
> {
> network.description = "Test";
>
> trivial =
> { config, pkgs, ... }:
> {
>
> imports =
> [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
>
> boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" ];
> boot.kernelModules = [ "kvm-intel" ];
> boot.extraModulePackages = [ ];
> boot.loader.grub.devices = [ "/dev/sda" ];
>
> fileSystems."/" =
> { device = "/dev/disk/by-uuid/3bafeea6-2e45-4048-b192-436b5a8f4e3b";
> fsType = "ext4";
> };
>
> fileSystems."/boot" =
> { device = "/dev/disk/by-uuid/f57eea7e-69d2-4629-af51-0fbff1e1a807";
> fsType = "ext2";
> };
>
> swapDevices =
> [ { device = "/dev/disk/by-uuid/6488f5b6-9412-4c35-9f1d-ae7bc442410e"; } ];
>
> nix.maxJobs = pkgs.lib.mkDefault 2;
>
> services.openssh.enable = true;
>
> environment.systemPackages = with pkgs;
> let
> # see https://nixos.org/wiki/TexLive_HOWTO
> tex = texlive.combine {
> inherit (texlive) scheme-medium collection-latexextra beamer moderncv moderntimeline cm-super inconsolata libertine;
> };
> in [ tex ]; # I disable this packages, deploy to physical machine works
>
> # deployment.targetEnv = "container"; #works in both cases
> deployment.targetEnv = "none";
> deployment.targetHost = "192.168.1.72";
> };
>
> }
>
>
> If I remove the tex package, deployment to a physical machine
> works. Otherwise the “Argument list too long” error appears. Deployment
> to a nixos container works in both cases.
>
> What is going on?
>
> Regards
> Eike
>
>
--
gpg: AD7AC35E
finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E
More information about the nix-dev
mailing list