nix-flakes/modules/mizukios/base/user.nix
2026-07-05 13:36:31 +09:00

34 lines
630 B
Nix

{ pkgs, inputs, ... }:
{
users.users.imnyang = {
isNormalUser = true;
linger = true;
description = "@imnya.ng";
extraGroups = [
"imnyang"
"networkmanager"
"wheel"
"docker"
"libvirtd"
"podman"
];
shell = pkgs.fish;
};
security.sudo.extraRules = [
{
users = [ "imnyang" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
system.activationScripts.createIcon = "ln -sfn ${inputs.self}/assets/avatar.webp /var/lib/AccountsService/icons/imnyang";
programs.fish.enable = true;
}