Hi,
I would like to move my homelab to NixOS (no GUI, only kubernetes).
For now I am:
- creating a VM image using
nix build .#nixosConfigurations.qcow2.config.system.build.qcow2
. - running the VM using
qemu-system-x86_64
But it is not clear to me how packages dependencies are calculated.
Even if I set:
documentation.enable = false;
documentation.dev.enable = false;
documentation.doc.enable = false;
documentation.nixos.enable = false;
documentation.man.enable = false;
environment.defaultPackages = [];
man pages for some packages are still installed:
$ nix path-info -r /run/current-system | grep man
/nix/store/ffqrphr0j6phc76lj4pwbwir3s0cgij7-jq-1.7.1-man
/nix/store/fybn8gry0ig40ji7xya5fzlirz9dd6nj-nix-2.18.1-man
/nix/store/apc0xxr94rxavsfb0x5jwfchybk5ld65-perl-5.38.2-man
/nix/store/m2arzrbfrscgsli0ahb59aky64jclmqc-nix-2.15.3-man
I do not understand why aws
packages are installed:
$ nix path-info -r /run/current-system | grep aws
/nix/store/nvybrkwk0na8l3wk61rp093qjnr47r7q-aws-c-common-0.9.10
/nix/store/5p0dcwwmjs08qgffgq4v1s320w0wi3vj-aws-c-cal-0.6.9
/nix/store/g778l529lh7b0860fl43560s37r1qfb6-aws-c-io-0.13.36
/nix/store/rsaxmnm189mgyndfwbwcxqwkllimlmrk-aws-c-compression-0.2.17
/nix/store/2b0wfwr5rs9z8qqhzcssrsah6ynlbj79-aws-c-http-0.7.14
/nix/store/7vzvav5ycn5bsizfzm8q4d9ddj9c5fwr-aws-c-mqtt-0.9.10
/nix/store/g6szbhjrpfrk1411digir61vs2x37gxl-aws-c-sdkutils-0.1.12
/nix/store/p7fs3lnksl3rlr5kihljbdazqnva4ql7-aws-c-auth-0.7.10
/nix/store/s44lqifkb2pw3bkxyk7zdzdig5d9q7pr-aws-checksums-0.1.17
/nix/store/vja1ifw4k6ld3q4jdg7a3f65r4250ibz-aws-c-s3-0.4.0
/nix/store/zplxavxyszipwgjrxhrdim1iydax7x9g-aws-c-event-stream-0.3.2
/nix/store/qzjfn8rzk3vbnnk47sxa85628l4gfiyg-aws-crt-cpp-0.24.7
/nix/store/szawfx8vmd4fd4x8ryc2lnfyajg7mw3b-aws-sdk-cpp-1.11.207
$ nix why-depends /run/current-system /nix/store/qzjfn8rzk3vbnnk47sxa85628l4gfiyg-aws-crt-cpp-0.24.7
/nix/store/dz3pxh3x6zsi9bqz1zby5523s8iw0qa2-nixos-system-nixos-24.05.20240216.df54f6f
└───/nix/store/qa71j58x51bi3xc5f91dvkb94jidv0sg-system-path
└───/nix/store/nzkd2mf4792r7aia5fw3f7libpk2rxyj-nix-2.18.1
└───/nix/store/qzjfn8rzk3vbnnk47sxa85628l4gfiyg-aws-crt-cpp-0.24.7
Any suggestions?
Thanks