mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 21:51:55 -05:00
mauville: remove initrd ssh activation script
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
54a3e71398
commit
b50a9511f9
|
@ -112,26 +112,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables.GDK_SCALE = "1.25";
|
environment.variables.GDK_SCALE = "1.25";
|
||||||
|
system.stateVersion = "24.05";
|
||||||
system = {
|
|
||||||
activationScripts.gen-initrd-ssh.text = ''
|
|
||||||
KEY_PATH="/etc/secrets/initrd/ssh_host_ed25519_key"
|
|
||||||
|
|
||||||
mkdir -p /etc/secrets/initrd
|
|
||||||
|
|
||||||
# Check if the file already exists
|
|
||||||
if [ -f "$KEY_PATH" ]; then
|
|
||||||
echo "[initrd] ssh key exists at $KEY_PATH."
|
|
||||||
else
|
|
||||||
# Generate the SSH key if it doesn't exist
|
|
||||||
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$KEY_PATH"
|
|
||||||
echo "[initrd] ssh key generated at $KEY_PATH."
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
stateVersion = "24.05";
|
|
||||||
};
|
|
||||||
|
|
||||||
zramSwap.memoryPercent = 100;
|
zramSwap.memoryPercent = 100;
|
||||||
|
|
||||||
ar = {
|
ar = {
|
||||||
|
|
Loading…
Reference in a new issue