fix[server]: remote disk unlock breaking

This commit is contained in:
Leon Schwarzäugl 2025-12-23 01:56:26 +01:00 committed by Leon Schwarzäugl
parent b06c19c52b
commit 2d2cb3c8fe
8 changed files with 48 additions and 46 deletions

View file

@ -1,8 +1,8 @@
{ name, writeShellApplication, nixosConfig, ... }:
{ name, writeShellApplication, config, ... }:
writeShellApplication {
inherit name;
runtimeInputs = [ nixosConfig.nix.package ];
runtimeInputs = [ config.nix.package ];
text = ''
sudo nix-env --switch-generation "$1" -p /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch
'';