2023-02-26 16:42:49 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
definedInPersonalDotNix = lib.mkDefault (throw "Configuration option missing from personal.nix");
|
|
|
|
in
|
|
|
|
{
|
|
|
|
users.users = {
|
|
|
|
fruchti = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "audio" "video" ];
|
|
|
|
openssh.authorizedKeys.keys = definedInPersonalDotNix;
|
|
|
|
shell = pkgs.fish;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
users.extraGroups = {
|
|
|
|
system = {
|
|
|
|
members = [ "fruchti" ];
|
|
|
|
};
|
|
|
|
};
|
2023-03-11 10:28:59 +01:00
|
|
|
|
|
|
|
security.sudo.extraRules = [
|
|
|
|
{
|
|
|
|
groups = [ "wheel" ];
|
|
|
|
commands = [
|
|
|
|
{
|
|
|
|
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild *";
|
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-02-26 16:42:49 +01:00
|
|
|
}
|