packages for bootable targets
This commit is contained in:
parent
9c0e1c011a
commit
dae7248c69
11 changed files with 41 additions and 19 deletions
|
|
@ -103,11 +103,10 @@
|
|||
(printf '{\n boot.initrd.availableKernelModules = [\n'
|
||||
cd ${config.boot.kernelPackages.kernel.modules}/lib/modules/*/kernel/drivers/net/ethernet
|
||||
find -type f | sed 's/^.*\/\([^.]*\).*$/ "\1"/' | sort
|
||||
printf ' ];\n}') > /etc/nixos/pxeboot/ethernet.nix
|
||||
nixos-install --flake "/etc/nixos#nixos-pxeboot" \
|
||||
printf ' ];\n}\n') > /etc/nixos/bootable/ethernet.nix
|
||||
nixos-install --flake "/etc/nixos#nixos-bootpxe" \
|
||||
--no-channel-copy --no-root-passwd --root /srv/pxe/nixos
|
||||
'';
|
||||
# delete --no-channel-copy later
|
||||
};
|
||||
};
|
||||
tmpfiles.rules = [ "d /srv/pxe/nixos/boot" ];
|
||||
|
|
|
|||
|
|
@ -36,12 +36,12 @@
|
|||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
EOF
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y unattended-upgrades
|
||||
cat <<' EOF' > 20auto-upgrades
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
EOF
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y;;
|
||||
1)
|
||||
cat <<' EOF' >> /etc/sysctl.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue