adds a new specialArg to hosts: usernameList, which is a list of users determined through user/user.nix in the host/hostname dir. This touches syncthing, tuigreet, jibril, shells, and system removes the user.name field, and converts user.timezone to system.timezone. This is to move user content off of the host. This old system is replaced with dynamic user creation based on the usernameList variable Because this removes the users.users.defaultUser shells now use the (more appropriate) users.defaultUserShell
15 lines
391 B
Nix
15 lines
391 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options = {
|
|
fish.enable = lib.mkEnableOption "Enables fish";
|
|
fish.setDefault = lib.mkEnableOption
|
|
"Sets fish as the default user's shell";
|
|
};
|
|
|
|
config = lib.mkIf config.fish.enable {
|
|
programs.fish.enable = true;
|
|
users.defaultUserShell = lib.mkIf config.fish.setDefault pkgs.fish;
|
|
environment.shells = with pkgs; [ fish ];
|
|
};
|
|
}
|