LnL7 / nix-darwin

nix modules for darwin
MIT License
3.21k stars 459 forks source link

progams.bash.shellAliases does not exist #1119

Open brennie opened 1 month ago

brennie commented 1 month ago

When trying to use the 1password shell plugins module (docs, source), the following error occurs:

error:
       … while evaluating the attribute 'config.system.build.toplevel'
         at /nix/store/0wq95rgv0jdwav39a220d4lqk5f80lbb-source/lib/modules.nix:334:9:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          335|         _module = checked (config._module);

       … while calling the 'seq' builtin
         at /nix/store/0wq95rgv0jdwav39a220d4lqk5f80lbb-source/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

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

       error: The option `programs.bash.shellAliases' does not exist. Definition values:
       - In `<unknown-file>':
           {
             _type = "if";
             condition = false;
             content = { };
           }

regular nixOS seems to support this option, but it is missing from nix-darwin.

ryullulala commented 2 weeks ago

Since I'm a Nix beginner, I'm not sure if this answer will be helpful, but on Mac, you can configure settings through home-manager instead of nix-darwin. I'm currently using nix-darwin + home-manager.

[1] https://mynixos.com/home-manager/option/programs.bash.shellAliases