modules/community-builder: allow users to set a shell
This commit is contained in:
parent
f550d11b48
commit
f6a8e5703b
5 changed files with 14 additions and 6 deletions
modules/nixos/community-builder
|
@ -26,10 +26,6 @@
|
|||
withUtempter = false;
|
||||
};
|
||||
|
||||
programs.fish.enable = true;
|
||||
# disable generated completion
|
||||
environment.etc."fish/generated_completions".text = pkgs.lib.mkForce "";
|
||||
|
||||
systemd.services.nixpkgs-clone = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
startAt = "daily";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
|
||||
|
@ -190,6 +190,7 @@ let
|
|||
extraGroups = userGroups opts;
|
||||
createHome = true;
|
||||
home = "/home/${name}";
|
||||
shell = opts.shell or config.users.defaultUserShell;
|
||||
hashedPassword = opts.password or null;
|
||||
openssh.authorizedKeys.keyFiles = [ opts.keys ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue