pub-solar-os/profiles/base-user/default.nix

21 lines
663 B
Nix
Raw Normal View History

2021-05-30 19:10:28 +00:00
{ config, pkgs, lib, ... }:
let
psCfg = config.pub-solar;
in
{
imports = [
./home.nix
];
2021-06-14 17:45:03 +00:00
users.users = with pkgs; pkgs.lib.setAttrByPath [ psCfg.user.name ] {
# Indicates whether this is an account for a “real” user.
# This automatically sets group to users, createHome to true,
# home to /home/username, useDefaultShell to true, and isSystemUser to false.
isNormalUser = true;
2021-11-17 11:05:50 +00:00
description = psCfg.user.description;
2021-06-14 17:45:03 +00:00
extraGroups = [ "wheel" "docker" "input" "audio" "networkmanager" "lp" "scanner" ];
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
shell = pkgs.zsh;
2021-05-30 19:10:28 +00:00
};
}