fix: use hostPlatform instead of deprecated system options

This commit is contained in:
demenik
2025-12-16 13:46:35 +01:00
parent e5a3748579
commit d6b7fba979
4 changed files with 6 additions and 6 deletions

View File

@@ -63,11 +63,11 @@
specialArgs = {inherit inputs stateVersion user dotsDir;}; specialArgs = {inherit inputs stateVersion user dotsDir;};
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
inherit system specialArgs; inherit specialArgs;
modules = modules =
[ [
{ {
nixpkgs.hostPlatform = system;
networking.hostName = hostName; networking.hostName = hostName;
} }
@@ -147,7 +147,7 @@
modules ? [], modules ? [],
}: }:
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {hostPlatform = system;};
inherit modules; inherit modules;
extraSpecialArgs = {inherit inputs stateVersion user dotsDir;}; extraSpecialArgs = {inherit inputs stateVersion user dotsDir;};
}; };

View File

@@ -25,7 +25,7 @@
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
inputs.bettersoundcloud.packages.${system}.default inputs.bettersoundcloud.packages.${pkgs.stdenv.hostPlatform.system}.default
gimp gimp
aseprite aseprite

View File

@@ -8,7 +8,7 @@ in {
imports = [spicetify-nix.homeManagerModules.default]; imports = [spicetify-nix.homeManagerModules.default];
programs.spicetify = let programs.spicetify = let
spicePkgs = spicetify-nix.legacyPackages.${pkgs.system}; spicePkgs = spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in { in {
enable = true; enable = true;

View File

@@ -14,7 +14,7 @@
ageFiles; ageFiles;
in { in {
home.packages = with inputs; [ home.packages = with inputs; [
agenix.packages."${pkgs.system}".default agenix.packages."${pkgs.stdenv.hostPlatform.system}".default
]; ];
age = { age = {