dotfiles/users/josh/configuration.nix
2024-03-12 03:09:24 -05:00

32 lines
777 B
Nix

{ config, lib, ylib, pkgs, settings, ... } @ args:
{
users.users.${settings.user.username} = {
initialPassword = "password1";
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" "input" ];
shell = pkgs.zsh;
};
# TODO how to do this from home manager file instead
environment.pathsToLink = [ "/share/zsh" ];
programs.zsh = {
enable = true;
};
home-manager.users.${settings.user.username} = {
imports =
# Common settings all users share
[ (settings.usersDir + "/_common/home.nix") ]
# User programs
++ ylib.umport {
paths = [ ./programs ];
recursive = true;
}
# User theme
++ ylib.umport {
paths = [ ./theme ];
recursive = true;
};
};
}