Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule doesn't work? #313

Open
astaugaard opened this issue Jan 21, 2025 · 3 comments
Open

Submodule doesn't work? #313

astaugaard opened this issue Jan 21, 2025 · 3 comments

Comments

@astaugaard
Copy link

Hi I include a git submodule in my configuration
when I run

deploy --remote-build .?submodule=1#rpi-home

the configuration fails to check since my kakoune configuration is in another github repo (I have my homeManager configuration in the same file). Sorry if I'm just messing something up.

@PhilTaken
Copy link
Collaborator

is there an error message that we could work with here? neither I nor anyone I know really works with submodules, especially around nix 🤔

@astaugaard
Copy link
Author

astaugaard commented Jan 28, 2025

The error message that nix gives (while checking) is

error: path /nix/store/9jifl...49m-source/modules/kak does not exist

If I had to guess I would assume that the command that is being used to check the config doesn't include the ?submodules=1 part, because without that it doesn't copy the Git submodules into the nix store, which would give the error that it is currently having.

Also the reason that I'm using submodules is that I have another computer that I have to use occasionally that doesn't have nix setup on it, and I would like to be able to use my config for kakoune on it without having to deal with all of nix's stuff.

If you for want to see the flake that I was using for this it is in my "dotfiles" repository. https://github.com/astaugaard/dotfiles

@astaugaard
Copy link
Author

ok I just noticed that I forgot the s on submodules, but the same error still applys when that is fixed.

so the command would be

deploy --remote-build .?submodules=1#rpi-home

and the complete log would be this:

warning: unknown flake output 'deploy'
error (ignored): error: end of string reached
error:
       … while checking flake output 'packages'
         at /nix/store/9jiflfivbz6y5pwc48bl3v5xaxapl49m-source/flake.nix:311:7:
          310|
          311|       packages.x86_64-linux.iso = nixos-generators.nixosGenerate {
             |       ^
          312|         system = "x86_64-linux";

       … while checking the derivation 'packages.x86_64-linux.iso'
         at /nix/store/9jiflfivbz6y5pwc48bl3v5xaxapl49m-source/flake.nix:311:7:
          310|
          311|       packages.x86_64-linux.iso = nixos-generators.nixosGenerate {
             |       ^
          312|         system = "x86_64-linux";

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/n1hshh978rylg6m6p8si83s8vks1xqbc-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/n1hshh978rylg6m6p8si83s8vks1xqbc-source/nixos/modules/system/boot/systemd.nix':

       … while evaluating the option `systemd.services.home-manager-nixos.serviceConfig':

       … while evaluating definitions from `/nix/store/n1hshh978rylg6m6p8si83s8vks1xqbc-source/flake.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/nix/store/9jiflfivbz6y5pwc48bl3v5xaxapl49m-source/modules/kak' does not exist
🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants