mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
fix[server]: remote disk unlock breaking
This commit is contained in:
parent
b06c19c52b
commit
2d2cb3c8fe
8 changed files with 48 additions and 46 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue