Basically what the title says. This seems to be an ongoing issue with some nix projects; the maintainer for nix-pkgs warns about this issue. But apparently this only applies if either using flakes, or if importing the nix-flatpak home-manager module from a file other than configuration.nix, neither of which I am doing. This is how I import it:
configuration.nix
{ config, lib, pkgs, ... }:
with import ./sys_variables.nix; {
imports = let
home-manager = builtins.fetchTarball {
url = "https://github.com/nix-community/home-manager/archive/release-${nix_current_ver}.tar.gz";
sha256 = "07pk5m6mxi666dclaxdwf7xrinifv01vvgxn49bjr8rsbh31syaq";
};
nix-flatpak = pkgs.fetchFromGitHub {
owner = "gmodena";
repo = "nix-flatpak";
rev = "v0.6.0";
hash = "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=";
};
in [
./hardware-configuration.nix # Include the results of the hardware scan.
(import "${home-manager}/nixos")
"${nix-flatpak}/modules/nixos.nix"
# "${nix-flatpak}/modules/home-manager.nix"
# nixvim.homeManagerModules.nixvim
];
}
I am also aware of these two posts here and here. Apparently the fix is to add nix-flatpak to extraSpecialArgs, but thatās a flake component, and Iām not using flakes. Is there an equivalent option for a normal nix configuration?