system/users/jan/default.nix

38 lines
831 B
Nix
Raw Normal View History

2022-10-08 22:45:35 +03:00
{ config, pkgs, lib, inputs, fontSize ? null, ... }:
{
nixpkgs.overlays = (import ../../overlays) ++ [
inputs.wired.overlays.default
inputs.myneovim.overlays.default
inputs.vnetod.overlay
inputs.nil.overlays.default
];
users.users.jan = {
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo for the user.
"networkmanager"
"docker"
];
shell = pkgs.zsh;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jan = { lib, ... }: {
imports = [
inputs.wired.homeManagerModules.default
./home.nix
];
progs.alacritty.fontSize = lib.mkIf (fontSize != null) fontSize;
home.stateVersion = config.system.stateVersion;
};
};
nix.settings.trusted-users = lib.mkForce [ "root" "jan" ];
2022-10-08 22:45:35 +03:00
}