Hi!
I’ve stumbled upon this problem recently. I was trying to declare source code of an application in my flake.nix file:
{
description = "Nixos config flake";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
onedrive = {
url = "github:abraunegg/onedrive/master";
};
};
outputs = { self, nixpkgs, nix-flatpak, home-manager, ... }@inputs:
let
system = "x86_64-linux";
pkgs = "nixpkgs.legacyPackages.${system}";
in
{
nixosConfigurations.dell-3 = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
];
};
};
}
But when I try to rebuild my system I get the following error:
error:
… while updating the lock file of flake 'path:/etc/nixos?lastModified=1736260073&narHash=sha256-4oEU0jtU2dCYe17r/%2Ba7NaahRnRgahsEuvU1uQzXm40%3D'
… while updating the flake input 'onedrive'
error: path '/nix/store/yawbmxg3fjsgp73s25n02rilwlr9n6yj-source/flake.nix' does not exist
[root@dell-3:~]#
Even running
[root@dell-3:~]# nix run github:abraunegg/onedrive/master
error: path '/nix/store/yawbmxg3fjsgp73s25n02rilwlr9n6yj-source/flake.nix' does not exist
[root@dell-3:~]#
throws the error. What does it mean?
Can you please help me guys?