2023-02-26 16:42:49 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
definedInPersonalDotNix = lib.mkDefault (throw "Configuration option missing from personal.nix");
|
|
|
|
in
|
|
|
|
{
|
2023-06-20 21:51:15 +02:00
|
|
|
programs.fish.enable = true;
|
|
|
|
|
2023-02-26 16:42:49 +01:00
|
|
|
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 = [
|
|
|
|
{
|
2024-04-27 14:33:05 +02:00
|
|
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
2023-03-11 10:28:59 +01:00
|
|
|
options = [ "NOPASSWD" ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-02-26 16:42:49 +01:00
|
|
|
}
|