sync
# Install
- hydrate ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch
+ hydrate ${config.system.build.nixos-rebuild}/bin/nixos-rebuild ${cfg.operation}
sync
while read user;do
remove_arg=-r
'';
};
+ operation = lib.mkOption {
+ type = lib.types.enum [
+ "switch"
+ "boot"
+ ];
+ default = "switch";
+ example = "boot";
+ description = ''
+ Whether to run
+ `nixos-rebuild switch --upgrade` or run
+ `nixos-rebuild boot --upgrade`
+ '';
+ };
+
signingKeys = mkOption {
type = types.listOf types.path;
description = ''
security.sudo.extraRules = lib.mkAfter [
{
groups = [ "users" ];
+ runAs = "root";
commands = [
{
command = "${auto-upgrade-script}";