system/users/jan/default.nix
2022-10-10 07:35:00 +03:00

39 lines
922 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, lib, inputs, fontSize ? null, ... }:
let secrets = import ./secrets.nix; in
{
nixpkgs.overlays = lib.mkAfter ((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;
inherit (secrets) initialHashedPassword;
};
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.mkAfter [ "jan" ];
}