fix[server]: remote disk unlock breaking

This commit is contained in:
Leon Schwarzäugl 2025-12-23 01:56:26 +01:00
parent 3b1b048ec1
commit 4a14888007
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 48 additions and 46 deletions

View file

@ -1,9 +1,9 @@
{ self, homeConfig, lib, pkgs, nixosConfig ? null, ... }:
{ self, homeConfig, lib, pkgs, config, ... }:
let
mkPackages = names: pkgs: builtins.listToAttrs (map
(name: {
inherit name;
value = pkgs.callPackage "${self}/pkgs/config/${name}" { inherit self name homeConfig nixosConfig; };
value = pkgs.callPackage "${self}/pkgs/config/${name}" { inherit self name homeConfig config; };
})
names);
packageNames = lib.swarselsystems.readNix "pkgs/config";

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 --list-generations --profile /nix/var/nix/profiles/system
'';

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
'';