Skip to content

Commit

Permalink
set root to use bash in module
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed May 28, 2024
1 parent 674dfe6 commit c102537
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ in {
systemPackages = [cfg.package];
};
users.defaultUserShell = cfg.package;

# Default root to bash
# defaultUserShell sets prio to 1000, we want a lower prio but still
# let users change this without mkForce
users.users.root.shell = lib.mkOverride 999 (pkgs.bashInteractive);
};
}

0 comments on commit c102537

Please sign in to comment.