From c156850fd41fcd3542b2c21bdde9e6c7c0860cb7 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Thu, 17 Apr 2025 16:04:38 +0200 Subject: [PATCH] ditch nixpkgs link from /run/current-system --- infra/common/nixos/default.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/infra/common/nixos/default.nix b/infra/common/nixos/default.nix index c789a04e..572bee46 100644 --- a/infra/common/nixos/default.nix +++ b/infra/common/nixos/default.nix @@ -1,8 +1,7 @@ -{ lib, pkgs, ... }: +{ lib, ... }: let inherit (lib) mkDefault; - nixPath = "/run/current-system/nixpkgs"; in { imports = [ @@ -16,15 +15,6 @@ in system.stateVersion = "24.05"; # do not change nixpkgs.hostPlatform = mkDefault "x86_64-linux"; - # use flake's nixpkgs over channels - nix.nixPath = [ "nixpkgs=${nixPath}" ]; - system.extraSystemBuilderCmds = '' - ln -sv ${pkgs.path} $out/nixpkgs - ''; - systemd.tmpfiles.rules = [ - "L+ ${nixPath} - - - - ${pkgs.path}" - ]; - ## This is just nice to have, but it is also particularly important for the ## Forgejo CI runners because the Nix configuration in the actions is directly ## taken from here.