users/services: remove oneshot service type

This commit is contained in:
Colin 2024-03-21 05:01:29 +00:00
parent dee4866737
commit db12e03f64
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ in
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${cfg.package}/bin/sway"; ExecStart = "${cfg.package}/bin/sway";
Type = "oneshot"; Type = "simple";
}; };
}; };
}; };

View File

@ -43,7 +43,7 @@ let
}; };
serviceConfig.Type = mkOption { serviceConfig.Type = mkOption {
type = types.enum [ "dbus" "oneshot" "simple" ]; type = types.enum [ "dbus" "simple" ];
}; };
serviceConfig.ExecStart = mkOption { serviceConfig.ExecStart = mkOption {
type = types.nullOr (types.coercedTo types.package toString types.str); type = types.nullOr (types.coercedTo types.package toString types.str);