refactor(nix): update system attribute usage in deploy modules
- Replaced `host.pkgs.system` with `host.pkgs.stdenv.hostPlatform.system` in `default.nix` for consistent attribute referencing. - Aligns with recent changes in Nixpkgs attribute structure and improves compatibility.
This commit is contained in:
parent
241eeb7d73
commit
22cc56926b
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ rec {
|
|||
let
|
||||
host = hosts.${name};
|
||||
user = host.config.metacfg.user.name or null;
|
||||
inherit (host.pkgs) system;
|
||||
system = host.pkgs.stdenv.hostPlatform.system;
|
||||
in
|
||||
result
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ let
|
|||
inherit (lib) mapAttrsToList concatStringsSep;
|
||||
inherit (lib.metacfg) override-meta;
|
||||
|
||||
formatted-hosts = mapAttrsToList (name: host: "${name},${host.pkgs.system}") hosts;
|
||||
formatted-hosts = mapAttrsToList (name: host: "${name},${host.pkgs.stdenv.hostPlatform.system}") hosts;
|
||||
|
||||
hosts-csv = writeText "hosts.csv" ''
|
||||
Name,System
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue