From 3e4b4cae2b9e0b804349171593520ef04d092faf Mon Sep 17 00:00:00 2001 From: aditya Date: Thu, 4 Jun 2026 01:42:59 +0530 Subject: [PATCH] use stdenv.hostPlatform.system instead of system --- configuration.nix | 9 ++++++++- system/{configuration.nix => config.nix} | 7 ------- system/default.nix | 2 +- system/overlays.nix | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) rename system/{configuration.nix => config.nix} (76%) diff --git a/configuration.nix b/configuration.nix index d474d10..071a190 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,6 +13,13 @@ security.rtkit.enable = true; security.polkit.enable = true; + nixpkgs.config.allowUnfree = true; + + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + users.users.aditya = { isNormalUser = true; description = "aditya"; @@ -36,6 +43,6 @@ zed-editor devenv nixd - inputs.pano-scrobbler.packages."x86_64-linux".default + inputs.pano-scrobbler.packages.${pkgs.stdenv.hostPlatform.system}.default ]; } diff --git a/system/configuration.nix b/system/config.nix similarity index 76% rename from system/configuration.nix rename to system/config.nix index cd4f295..cd7b499 100644 --- a/system/configuration.nix +++ b/system/config.nix @@ -14,12 +14,5 @@ LC_TIME = "en_IN"; }; - nixpkgs.config.allowUnfree = true; - - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; - system.stateVersion = "25.11"; } diff --git a/system/default.nix b/system/default.nix index ddf8112..674191b 100644 --- a/system/default.nix +++ b/system/default.nix @@ -2,7 +2,7 @@ imports = [ ./bootloader.nix ./networking.nix - ./configuration.nix + ./config.nix ./overlays.nix ]; } diff --git a/system/overlays.nix b/system/overlays.nix index d375af3..11b07e9 100644 --- a/system/overlays.nix +++ b/system/overlays.nix @@ -5,7 +5,7 @@ (final: prev: let unstable-pkgs = import inputs.nixpkgs-unstable { - inherit (prev) system; + system = prev.stdenv.hostPlatform.system; config.allowUnfree = true; config.allowUnsupportedSystem = true; };