home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2c23010722f985bf16af42a845e572ef3e4e177b
parent c302d0a3430a20251a115cf50c8be56a6043b77f
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  5 Jun 2020 15:16:45 +0200

users.root: set zsh as shell if enabled

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Musers/root/default.nix | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/users/root/default.nix b/users/root/default.nix @@ -1,6 +1,9 @@ { config, lib, pkgs, ... }: -{ +with lib; { + users.users.root = { + shell = mkIf config.programs.zsh.enable pkgs.zsh; + }; home-manager.users.root = lib.mkMerge ( [ (import ../vincent/core) ] );