Hello there,
I’ve been experiencing an issue when trying to build my NixOS flake.
Every time I run sudo nixos-rebuild switch --flake .
, I’m getting:
error:
… while updating the lock file of flake 'git+file:///home/ben/dev/benbouillet/nix-config?ref=refs/heads/main&rev=83548921b8f2b47633d85080e5aa58b811f8e96c'
… while updating the flake input 'darwin'
… while fetching the input 'github:lnl7/nix-darwin'
error: opening file '/nix/store/80vm8x341yzc68vhan383sp1pavdnpw3-source': No such file or directory
This is no missing git add X
issue as my git tree is clean (no pending change).
I’ve tried commenting the nix-darwin
input block (this is a multi-system nixOS flake), then I’m getting:
warning: Git tree '/home/ben/dev/benbouillet/nix-config' is dirty
error:
… while updating the lock file of flake 'git+file:///home/ben/dev/benbouillet/nix-config'
… while updating the flake input 'hardware'
error: path '/nix/store/pnqgm0kb2558z16bapq000alyyi42gc1-source/flake.nix' does not exist
Commenting the nixos-hardware
inputs & associated invocation, I’m getting:
warning: Git tree '/home/ben/dev/benbouillet/nix-config' is dirty
error:
… while calling the 'seq' builtin
at /nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/lib/modules.nix:359:18:
358| options = checked options;
359| config = checked (removeAttrs config [ "_module" ]);
| ^
360| _module = checked (config._module);
… while evaluating a branch condition
at /nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/lib/modules.nix:295:9:
294| checkUnmatched =
295| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [ ] then
| ^
296| let
… while evaluating the module argument `pkgs' in "/nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/nixos/modules/services/hardware/bluetooth.nix":
… while evaluating the option `nixpkgs.overlays':
… while evaluating definitions from `/nix/store/ircvcn76p9agcdr0763xzi761ja6b4g9-source/modules/nixos/common.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: path '/nix/store/8d15jzmx0g2r4s262iky7v0pwa5zymll-source/flake.nix' does not exis
Commenting the following:
nixpkgs.overlays = [
inputs.nur.overlays.default
];
I’m finally getting:
warning: creating lock file '"/home/ben/dev/benbouillet/nix-config/flake.lock"':
• Added input 'home-manager':
'github:nix-community/home-manager/c9433ae62fbb4bd09609e242569edc3b551e21a9?narHash=sha256-zQTOl/JPGjiAQoU1yraCGfPBg7yr4nlHNdbZy8Ebrl4%3D' (2025-04-22)
• Added input 'home-manager/nixpkgs':
follows 'nixpkgs'
• Added input 'nixpkgs':
'github:nixos/nixpkgs/b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef?narHash=sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU%3D' (2025-04-17)
• Added input 'nixvim':
'github:nix-community/nixvim/60638182b8d1b0fe13631d02eafaf8903499ee60?narHash=sha256-Sjb/LvtWpPtSXacjJCTrLAmWtXNJd0SWxO3PzTvD7Tc%3D' (2025-04-22)
• Added input 'nixvim/flake-parts':
'github:hercules-ci/flake-parts/c621e8422220273271f52058f618c94e405bb0f5?narHash=sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY%3D' (2025-04-01)
• Added input 'nixvim/flake-parts/nixpkgs-lib':
follows 'nixvim/nixpkgs'
• Added input 'nixvim/nixpkgs':
follows 'nixpkgs'
• Added input 'nixvim/nuschtosSearch':
'github:NuschtOS/search/066afe8643274470f4a294442aadd988356a478f?narHash=sha256-8v4y6k16Ra/fiecb4DxhsoOGtzLKgKlS%2B9/XJ9z0T2I%3D' (2025-04-19)
• Added input 'nixvim/nuschtosSearch/flake-utils':
'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13)
• Added input 'nixvim/nuschtosSearch/flake-utils/systems':
'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D' (2023-04-09)
• Added input 'nixvim/nuschtosSearch/ixx':
'github:NuschtOS/ixx/a1176e2a10ce745ff8f63e4af124ece8fe0b1648?narHash=sha256-fTVAWzT1UMm1lT%2BYxHuVPtH%2BDATrhYfea3B0MxG/cGw%3D' (2025-01-20)
• Added input 'nixvim/nuschtosSearch/ixx/flake-utils':
follows 'nixvim/nuschtosSearch/flake-utils'
• Added input 'nixvim/nuschtosSearch/ixx/nixpkgs':
follows 'nixvim/nuschtosSearch/nixpkgs'
• Added input 'nixvim/nuschtosSearch/nixpkgs':
follows 'nixvim/nixpkgs'
• Added input 'nur':
'github:nix-community/NUR/d2c87da120c61ab2642f1a82b803777730c84019?narHash=sha256-T0/7FE%2BuXlO0VUdQtybY0mT5ekNQo/5A70EeahYgIew%3D' (2025-04-22)
• Added input 'nur/flake-parts':
'github:hercules-ci/flake-parts/205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9?narHash=sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c%3D' (2024-12-04)
• Added input 'nur/flake-parts/nixpkgs-lib':
follows 'nur/nixpkgs'
• Added input 'nur/nixpkgs':
follows 'nixpkgs'
• Added input 'nur/treefmt-nix':
'github:numtide/treefmt-nix/49717b5af6f80172275d47a418c9719a31a78b53?narHash=sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM%3D' (2024-12-03)
• Added input 'nur/treefmt-nix/nixpkgs':
follows 'nur/nixpkgs'
• Added input 'sops-nix':
'github:Mic92/sops-nix/5e3e92b16d6fdf9923425a8d4df7496b2434f39c?narHash=sha256-ePyTpKEJTgX0gvgNQWd7tQYQ3glIkbqcW778RpHlqgA%3D' (2025-04-22)
• Added input 'sops-nix/nixpkgs':
follows 'nixpkgs'
• Added input 'stylix':
'github:danth/stylix/375b1de2424aac1338ee6e8b4ef15976b64b0462?narHash=sha256-2lRWKSUlKTsfqLhyxXsxKcoPQG5tFQ3GbTne8/vVCQY%3D' (2025-04-22)
• Added input 'stylix/base16':
'github:SenchoPens/base16.nix/153d52373b0fb2d343592871009a286ec8837aec?narHash=sha256-%2BR1BH5wHhfnycySb7Sy5KbYEaTJZWm1h%2BLW1OtyhiTs%3D' (2024-11-21)
• Added input 'stylix/base16/fromYaml':
'github:SenchoPens/fromYaml/106af9e2f715e2d828df706c386a685698f3223b?narHash=sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8%3D' (2024-11-18)
• Added input 'stylix/base16-fish':
'github:tomyun/base16-fish/2f6dd973a9075dabccd26f1cded09508180bf5fe?narHash=sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA%3D' (2021-06-01)
• Added input 'stylix/base16-helix':
'github:tinted-theming/base16-helix/03860521c40b0b9c04818f2218d9cc9efc21e7a5?narHash=sha256-esD42YdgLlEh7koBrSqcT7p2fsMctPAcGl/%2B2sYJa2o%3D' (2025-01-14)
• Added input 'stylix/base16-vim':
'github:tinted-theming/base16-vim/577fe8125d74ff456cf942c733a85d769afe58b7?narHash=sha256-e0bpPySdJf0F68Ndanwm%2BKWHgQiZ0s7liLhvJSWDNsA%3D' (2024-11-28)
• Added input 'stylix/firefox-gnome-theme':
'github:rafaelmardojai/firefox-gnome-theme/df53a7a31872faf5ca53dd0730038a62ec63ca9e?narHash=sha256-oiHLDHXq7ymsMVYSg92dD1OLnKLQoU/Gf2F1GoONLCE%3D' (2025-04-04)
• Added input 'stylix/flake-compat':
'github:edolstra/flake-compat/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
• Added input 'stylix/flake-utils':
'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13)
• Added input 'stylix/flake-utils/systems':
follows 'stylix/systems'
• Added input 'stylix/git-hooks':
'github:cachix/git-hooks.nix/dcf5072734cb576d2b0c59b2ac44f5050b5eac82?narHash=sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco%3D' (2025-03-22)
• Added input 'stylix/git-hooks/flake-compat':
follows 'stylix/flake-compat'
• Added input 'stylix/git-hooks/gitignore':
'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394?narHash=sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs%3D' (2024-02-28)
• Added input 'stylix/git-hooks/gitignore/nixpkgs':
follows 'stylix/git-hooks/nixpkgs'
• Added input 'stylix/git-hooks/nixpkgs':
follows 'stylix/nixpkgs'
• Added input 'stylix/gnome-shell':
'github:GNOME/gnome-shell/dadd58f630eeea41d645ee225a63f719390829dc?narHash=sha256-JhUWbcYPjHO3Xs3x9/Z9RuqXbcp5yhPluGjwsdE2GMg%3D' (2024-11-23)
• Added input 'stylix/home-manager':
'github:nix-community/home-manager/b0cc092405da805da6fa964f5a178343658ceaf0?narHash=sha256-0hVbHuqAnZUnnGaBTqNes0P0kfH%2BKKyup2boWDST0iI%3D' (2025-04-21)
• Added input 'stylix/home-manager/nixpkgs':
follows 'stylix/nixpkgs'
• Added input 'stylix/nixpkgs':
'github:NixOS/nixpkgs/2c8d3f48d33929642c1c12cd243df4cc7d2ce434?narHash=sha256-F7n4%2BKOIfWrwoQjXrL2wD9RhFYLs2/GGe/MQY1sSdlE%3D' (2025-04-02)
• Added input 'stylix/nur':
'github:nix-community/NUR/fde90f5f52e13eed110a0e53a2818a2b09e4d37c?narHash=sha256-foVcginhVvjg8ZnTzY5wwMeZ4wjJ8yX66PW5kgyivPE%3D' (2025-04-05)
• Added input 'stylix/nur/flake-parts':
'github:hercules-ci/flake-parts/205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9?narHash=sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c%3D' (2024-12-04)
• Added input 'stylix/nur/flake-parts/nixpkgs-lib':
follows 'stylix/nur/nixpkgs'
• Added input 'stylix/nur/nixpkgs':
follows 'stylix/nixpkgs'
• Added input 'stylix/nur/treefmt-nix':
'github:numtide/treefmt-nix/49717b5af6f80172275d47a418c9719a31a78b53?narHash=sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM%3D' (2024-12-03)
• Added input 'stylix/nur/treefmt-nix/nixpkgs':
follows 'stylix/nur/nixpkgs'
• Added input 'stylix/systems':
'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D' (2023-04-09)
• Added input 'stylix/tinted-foot':
'github:tinted-theming/tinted-foot/fd1b924b6c45c3e4465e8a849e67ea82933fcbe4?narHash=sha256-%2BeDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ%3D' (2024-09-21)
• Added input 'stylix/tinted-kitty':
'github:tinted-theming/tinted-kitty/eb39e141db14baef052893285df9f266df041ff8?narHash=sha256-2xF3sH7UIwegn%2B2gKzMpFi3pk5DlIlM18%2Bvj17Uf82U%3D' (2024-05-23)
• Added input 'stylix/tinted-schemes':
'github:tinted-theming/schemes/c37771c4ae8ff1667e27ddcf24991ebeb94a4e77?narHash=sha256-sR4K%2BOVFKeUOvNIqcCr5Br7NLxOBEwoAgsIyjsZmb8s%3D' (2025-03-24)
• Added input 'stylix/tinted-tmux':
'github:tinted-theming/tinted-tmux/af5152c8d7546dfb4ff6df94080bf5ff54f64e3a?narHash=sha256-8IQulrb1OBSxMwdKijO9fB70ON//V32dpK9Uioy7FzY%3D' (2025-03-30)
• Added input 'stylix/tinted-zed':
'github:tinted-theming/base16-zed/122c9e5c0e6f27211361a04fae92df97940eccf9?narHash=sha256-8P1b6mJWyYcu36WRlSVbuj575QWIFZALZMTg5ID/sM4%3D' (2024-09-08)
warning: Git tree '/home/ben/dev/benbouillet/nix-config' is dirty
error:
… while calling the 'seq' builtin
at /nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/lib/modules.nix:359:18:
358| options = checked options;
359| config = checked (removeAttrs config [ "_module" ]);
| ^
360| _module = checked (config._module);
… while evaluating a branch condition
at /nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/lib/modules.nix:295:9:
294| checkUnmatched =
295| if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [ ] then
| ^
296| let
… while evaluating the module argument `pkgs' in "/nix/store/isfbldda5j8j6x3nbv1zim0c0dpf90v8-source/nixos/modules/services/hardware/bluetooth.nix":
… while evaluating the option `nixpkgs.overlays':
… while evaluating definitions from `/nix/store/2f6yxcc7bcspwzv6x75nx9xh3grzviny-source/modules/nixos/common.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: path '/nix/store/8d15jzmx0g2r4s262iky7v0pwa5zymll-source/flake.nix' does not exist
I’ve tried removing my flake.lock
& rebuilding it via nix flake lock
I’ve tried cleaning the registry via nix registry remove ...
the above mentioned inputs.
I’ve tried sudo nix-collect-garbage -d
I’ve tried rm -rf ~/.cache/nix
… to no avail.
I can’t see anything in my last commits that would justify such an issue.
Can you guys give me pointers on solving this please ?
Running nixOS unstable
with:
> nix flake metadata
Resolved URL: git+file:///home/ben/dev/benbouillet/nix-config
Path: /nix/store/sghf8vqlrimx65pmq05fhcxvg9sas6gl-source
Revision: <REDACTED>
Last modified: 2025-04-22 16:47:04
Fingerprint: <REDACTED>
Inputs:
├───home-manager: github:nix-community/home-manager/c9433ae62fbb4bd09609e242569edc3b551e21a9?narHash=sha256-zQTOl/JPGjiAQoU1yraCGfPBg7yr4nlHNdbZy8Ebrl4%3D (2025-04-22 16:42:04)
│ └───nixpkgs follows input 'nixpkgs'
├───nixpkgs: github:nixos/nixpkgs/b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef?narHash=sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU%3D (2025-04-17 23:31:41)
├───nixvim: github:nix-community/nixvim/60638182b8d1b0fe13631d02eafaf8903499ee60?narHash=sha256-Sjb/LvtWpPtSXacjJCTrLAmWtXNJd0SWxO3PzTvD7Tc%3D (2025-04-22 12:16:02)
...
Here is my config.