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

powershell: Unable to use as a login shell #45830

Closed
AmandaCameron opened this issue Aug 31, 2018 · 1 comment
Closed

powershell: Unable to use as a login shell #45830

AmandaCameron opened this issue Aug 31, 2018 · 1 comment

Comments

@AmandaCameron
Copy link
Contributor

Issue description

Attempting to add unstable.powershell to environment.shells or users.extraUsers.<username>.shell results in the following error:

error: /nix/store/4km9l5rdin6iz57g3p229v92jbl1cg5w-powershell-6.0.4 is not a shell package

Steps to reproduce

Add the following to your configuration.nix:

let 
 unstable = import <unstable> {};

{
 environment.systemPackages = [ unstable.powershell ];

 environment.shells = [ unstable.powershell ];

 users.extraUsers.test = {
  isNormalUser = true;
  uid = 1000;
  shell = unstable.powershell;
 };
}

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.67, NixOS, 18.03.133174.edd63e05d1e (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(root): `"nixos-18.03.133174.edd63e05d1e, unstable"`
 - channels(amandac): `"nixpkgs-18.09pre150352.7c826371c49"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`
@jtojnar
Copy link
Member

jtojnar commented Sep 1, 2018

passhtru.shellPath would need to be defined for powershell, see, for example, fish:

passthru = {
shellPath = "/bin/fish";
};

mox-mox pushed a commit to mox-mox/nixpkgs that referenced this issue Dec 31, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Dec 31, 2019
…vised for a similar case in NixOS#45830

(cherry picked from commit 89c2324)
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Dec 31, 2019
Fixes NixOS#45830

(cherry picked from commit 13b0141)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants